. 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 meant by keywords in c?
Explain how do you list a file’s date and time?
Explain what is the difference between the expression '++a' and 'a++'?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
What does printf does?
When should a type cast not be used?
What are the differences between Structures and Arrays?
Which type of language is c?
What is a c token and types of c tokens?
What's the best way of making my program efficient?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
How can I automatically locate a programs configuration files in the same directory as the executable?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
Do you know the difference between malloc() and calloc() function?