source file name: UpperLower.C
void main()
{
char ch;
clrscr();
printf("\n Upper case letters\n ");
ch=65;
while(ch<=90)
{
printf(" %c ",ch);
ch++;
}
printf("\n Lower case letters\n ");
ch=97;
while(ch<=122)
{
printf(" %c ",ch);
ch++;
}
getch();
}
output:
0 Comments
Post a Comment