Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

. 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

Explain continue keyword in c

1065


the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b

2755


What is the difference between Printf(..) and sprint(...) ?

1638


Are negative numbers true in c?

1112


Is it possible to have a function as a parameter in another function?

1129


I heard that you have to include stdio.h before calling printf. Why?

1115


Do pointers store the address of value or the actual value of a variable?

1125


What is meant by initialization and how we initialize a variable?

1096


What is the explanation for cyclic nature of data types in c?

1263


Write a Program to find whether the given number or string is palindrome.

1339


What is the difference between exit() and _exit() function?

1101


what is a constant pointer in C

1246


What are enums in c?

1289


What is spark map function?

1209


Implement bit Array in C.

1199