Write a Function to check uppercase letter
Flowchart:
Algorithm:-
· start
· input number
· if(ch>=’A’&&ch<=’Z’) it is true then display UPPERCASE CHARACTER
· else not an alphabet
· end
Program:-
#include<stdio.h> #include<conio.h> void characcheck(char ch) { If(ch>=’A’&&ch<=’Z’) { Printf(“UPPERCASE CHARACTER\n”); } Else Printf(“is not an alphabet\n”); } Int main() { char c; printf(“Enter any character\n”); scanf(“%c”,&c); characcheck(c); getch(); return 0; }
Output:
enter any character J UPPERCASE CHARACTER
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Flowchart:
Algorithm:-
· start
· input number
· if(ch>=’A’&&ch<=’Z’) it is true then display UPPERCASE CHARACTER
· else not an alphabet
· end
Program:-
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer