#include <iostream.h>
#include <conio.h>
#include <ctype.h> // header file for islower( )
void main ( )
{
char c , ans ;
int a ;
do
{
cout<<"\n Enter a character -" ;
cin >>c ;
if (islower (c) > 0)
cout<<"\n The character is a lower case character ." ;
else
cout<<"\n The character is not a lower case character." ;
cout<<"\n Do you want to continue ? (y or n) : ";
cin >> ans;
}
while ( (ans == 'y') || (ans == 'Y') ) ;
getch();
}
0 comments:
Post a Comment