write a c program for print your name .but,your name may be small
letter mean print a capital letter or your name may be capital
letter mean print a small letter .example
\\enter ur name :
sankar
The name is: SANKAR
(or)
enter your name:SAnkar
The name is:saNKAR
Answer Posted / ganesh
char s[15];int n,i;
scanf("%s",s,printf("give a name:"));
for(i=0;i<strlen(s);i++)
{
if(s[i]==tolower(s[i]))
putchar(toupper(s[i]));
else
putchar(tolower(s[i]));
}
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
How many types of operator or there in c?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
What is calloc malloc realloc in c?
Is main is user defined function?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
What is a ternary operator in c?
Explain what are multibyte characters?
Is exit(status) truly equivalent to returning the same status from main?
What is the process of writing the null pointer?
What are the different types of data structures in c?
What are the types of assignment statements?
How many levels of pointers have?
Write a program to check palindrome number in c programming?
What are file streams?