. 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
Why does everyone say not to use scanf? What should I use instead?
What is #include stdio h and #include conio h?
What is the purpose of main( ) in c language?
What are unions in c?
What are file streams?
What language is c written?
What are the keywords in c?
What is an array? What the different types of arrays in c?
What is a scope resolution operator in c?
What are the different types of objects used in c?
Which is better between malloc and calloc?
What is the most efficient way to store flag values?
How do I swap bytes?
What is property type c?
what type of questions arrive in interview over c programming?