C Language (Functions)

#include
#include
char ucase();

void main()
{
char ch1;
clrscr();

ch1 = ucase();
printf("\n The Character is %c",ch1);

getch();
}


char ucase()
{
char ch;
ch = getche();

if (ch>=65 && ch<=90) ch=ch+32; else if (ch>=97 && ch<=122)
ch=ch-32;

return(ch);

}

Comments

Popular posts from this blog

NICOSIA