#include
#include
#include
void main () {
char n;
int x;
printf("\n\nEnter your name:\t");
scanf("%c",&n);
if(islower(n)){
n=toupper(n);
printf("the converted character:\t%c",n);
}else{
n=tolower(n);
printf("the converted character:\t%c",n);
}
if(isalnum(n))
printf("\nthe character is neither a letter nor a number.\n");
if(ispunct(n))
printf("that is a punctuation");
//input name
printf("\n\nEnter your name:\t");
scanf("%s",&n);
//char as string
for (x=0;x<100;x++){
if(n[x]!='\0'){
if(islower(n)){
n=toupper(n);
printf("%s",n);
} else {
n=tolower(n);
printf("%s",n);
}
system("pause");
}
2006-11-19
00:04:47
·
4 answers
·
asked by
cL@iRe
2
in
Computers & Internet
➔ Programming & Design