#include<stdio.h>
#include<conio.h>
void main()
{ char ch;
printf(" \n Enter a character :-");
scanf(" %c",&ch);
if(ch>=65 && ch<=90)
printf("\n %c is capital ",ch);
else if( ch>=97 && ch<=122)
printf("\n %c is small ",ch);
else if( ch>=48 && ch<=57)
printf("\n %c is Digit ",ch);
else
printf("\n %c is special symbol ",ch);
getch();
}
/* Output:--
Enter a character :- h
h is small
Enter a character :- 8
8 is Digit
Enter a character :- G
G is capital
Enter a character :- +
+ is special symbol
*/
👇💬ðŸ’😊👌
No comments:
Post a Comment
This Blog helps you to learn basics to high level programming coding and practicals.
conceptual understanding