. 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 do you mean by dynamic memory allocation in c? What functions are used?

638


Is calloc better than malloc?

561


List some applications of c programming language?

537


Who is the founder of c language?

667


What is #pragma statements?

579






What is FIFO?

661


Explain About fork()?

635


Write a code of a general series where the next element is the sum of last k terms.

579


What is the difference between mpi and openmp?

721


How can I read a binary data file properly?

622


What is unary operator?

646


What is the use of c language in real life?

519


What is maximum size of array in c?

569


Write programs for String Reversal & Palindrome check

590


Can one function call another?

616