. 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
Which is better pointer or array?
Did c have any year 2000 problems?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
Write a code on reverse string and its complexity.
How many types of functions are there in c?
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
What is the difference between declaring a variable and defining a variable?
What is %d used for?
Explain what is the difference between a string and an array?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is the difference between malloc() and calloc() function in c language?
please send me the code for multiplying sparse matrix using c
what do u mean by Direct access files? then can u explain about Direct Access Files?
Explain zero based addressing.
define string ?