. 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

How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

910


What does %p mean c?

854


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

860


simple program of graphics and their output display

1742


write a program to display all prime numbers

1731


A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler

897


Apart from dennis ritchie who the other person who contributed in design of c language.

1128


What is the basic structure of c?

828


What is the use of linkage in c language?

855


show how link list can be used to repersent the following polynomial i) 5x+2

1934


What is a program?

958


In a header file whether functions are declared or defined?

925


Hi can anyone tell what is a start up code?

1868


What are the primitive data types in c?

825


Why is c called "mother" language?

1096