home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
BEEHIVE
/
TESERACT
/
TESS-057.ZIP
/
C-STUFF3.LBR
/
ALPHACAS.C
next >
Wrap
Text File
|
1989-01-22
|
512b
|
23 lines
#include "stdio"
main() /* Check for upper or lower */
{
char in = 'a';
printf("Test for upper or lowercase letters,");
printf(" terminate on non-alpha.\n)");
while ((in <= 'z' && in >= 'a') ||
(in <= 'Z' && in >= 'A'))
{
printf("Enter a character and");
printf(" press 'RETURN': ");
scanf("%c%*c",&in);
printf("Character read is %c\n",in);
}
printf("Program Terminated - ");
printf("non-alphabetic character entered\n");
}