. 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

write a program to create a sparse matrix using dynamic memory allocation.

4470


is it possible to create your own header files?

718


What is void main () in c?

832


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

778


What is the use of define in c?

696






while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

850


What is wild pointer in c?

714


What does double pointer mean in c?

675


What is array within structure?

693


Explain argument and its types.

701


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

932


What are all different types of pointers in c?

678


Explain the difference between #include "..." And #include <...> In c?

708


What is a macro, and explain how do you use it?

707


Can you write a programmer for FACTORIAL using recursion?

704