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
i have a written test for microland please give me test pattern
What is c programing language?
What is c preprocessor mean?
Why pointers are used in c?
How does #define work?
How can you read a directory in a C program?
What is c method?
What is the value of h?
Here is a neat trick for checking whether two strings are equal
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
Write a program to swap two numbers without using third variable in c?
Can we add pointers together?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What is the difference between union and anonymous union?
What are the types of functions in c?