Q:

Write a Function to check uppercase letter

0

Write a Function to check uppercase letter

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Flowchart:

Algorithm:-

·        start

·        input number

·        if(ch>=’A’&&ch<=’Z’) it is true then display UPPERCASE CHARACTER

·        else not an alphabet

 

·        end

     Program:-

#include&lt;stdio.h&gt;
#include&lt;conio.h&gt;
void characcheck(char ch)
{
If(ch&gt;=’A’&amp;&amp;ch&lt;=’Z’)
{
Printf(“UPPERCASE CHARACTER\n”);
}
Else
Printf(“is not an alphabet\n”);
}
Int main()
{
char c;
printf(“Enter any character\n”);
scanf(“%c”,&amp;c);
characcheck(c);
getch();
return 0;
}

Output:

enter any character
J
UPPERCASE CHARACTER

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C Programming Exercises With Solutions

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Write a program in c to function to check lowercas... >>
<< Write a program in c to print fabonnaci series...