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
What are different types of variables in c?
Why is it that not all header files are declared in every C program?
largest Of three Number using without if condition?
What are operators in c?
What is the easiest sorting method to use?
What is %d used for?
Explain what are multidimensional arrays?
Why is c faster?
What is the difference between procedural and declarative language?
Explain how can I manipulate strings of multibyte characters?
What is pointer and structure in c?
What do mean by network ?
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
What is boolean in c?
What does int main () mean?