. 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


Please Help Members By Posting Answers For Below Questions

What is malloc return c?

599


What is calloc() function?

625


How can I read a binary data file properly?

635


What is the use of #include in c?

575


Why c language?

647






What is the advantage of c?

611


What is the difference between array and linked list in c?

600


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

615


How would you obtain the current time and difference between two times?

729


Is c high or low level?

582


Do character constants represent numerical values?

844


What are local variables c?

551


What does c mean in standard form?

597


What is memory leak in c?

635


How will you write a code for accessing the length of an array without assigning it to another variable?

613