. Write a program to get a string and to convert the 1st
letter of it to uppercase
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / kiran
void main()
{
char str[20];
int i=0;
printf("Enter your name : ");
gets(name);
if(str[i] >= 97 && str[i]<=122)
str[i] = str[i] - 32;
printf("The new String is %s",str);
}
| Is This Answer Correct ? | 1 Yes | 1 No |
What is FIFO?
Explain what is the difference between far and near ?
Stimulate calculator using Switch-case-default statement for two numbers
How can you call a function, given its name as a string?
Explain setjmp()?
Is it possible to create recycle bin in mobiles?
what do structure language means?
how to make a scientific calculater ?
What is meant by recursion?
what type of questions arrive in interview over c programming?
What is assignment operator?
Write a program to generate prime factors of a given integer?