. Write a program to get a string and to convert the 1st
letter of it to uppercase
Answer Posted / darshana
Dim str As String
Dim ch() As Char
Console.WriteLine("enter a string")
str = Console.ReadLine()
ch = str.ToCharArray
Console.Write(Char.ToUpper(ch(0)))
For i As Integer = 0 To ch.GetUpperBound(0) - 1
Console.Write(ch(i + 1))
Next
Console.WriteLine()
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Explain continue keyword in c
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
What is the difference between Printf(..) and sprint(...) ?
Are negative numbers true in c?
Is it possible to have a function as a parameter in another function?
I heard that you have to include stdio.h before calling printf. Why?
Do pointers store the address of value or the actual value of a variable?
What is meant by initialization and how we initialize a variable?
What is the explanation for cyclic nature of data types in c?
Write a Program to find whether the given number or string is palindrome.
What is the difference between exit() and _exit() function?
what is a constant pointer in C
What are enums in c?
What is spark map function?
Implement bit Array in C.