. 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 f'n in math?
What are the difference between a free-standing and a hosted environment?
Can we compile a program without main() function?
What are the different types of pointers used in c language?
what value is returned to operating system after program execution?
Is c compiled or interpreted?
Explain the properties of union. What is the size of a union variable
What is the most efficient way to count the number of bits which are set in an integer?
What is the use of sizeof () in c?
What is #line?
Why does this code crash?
Hai what is the different types of versions and their differences
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
write a program to print data of 5 five students with structures?
Why doesnt that code work?