. 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
What is malloc return c?
What is calloc() function?
How can I read a binary data file properly?
What is the use of #include in c?
Why c language?
What is the advantage of c?
What is the difference between array and linked list in c?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
How would you obtain the current time and difference between two times?
Is c high or low level?
Do character constants represent numerical values?
What are local variables c?
What does c mean in standard form?
What is memory leak in c?
How will you write a code for accessing the length of an array without assigning it to another variable?