#include"stdio.h"
char upr(char v)
{
if(v>='a'&&v<='z')
return ('A'+v-'a');
else
return (v);
}
int main (void)
{
char ch;
printf("Enter a character:\n");
scanf("%c",&ch);
printf("The upper form of %c is %c\n", ch, upr(ch));
system("pause");
return 0;
}
0 comments:
Post a Comment