Computer Science, asked by pragyatunwalxa, 6 hours ago

Write a program to take an Input a character and verify it is an alphabet or not. Sample Output: Enter a character – G The character G is an Alphabet​

Answers

Answered by Unlikely
0

Answer:

You did not specify whatever language you intend to use in this program but I'll just assume that it is in C language

#include <stdio.h>

int main()

{

   char ch;

   //Asking user to enter the character

   printf("Enter any character: ");

   //storing the entered character into the variable ch

   scanf("%c",&ch);

   if( (ch>='a' && ch<='z') || (ch>='A' && ch<='Z'))

       printf("The entered character %c is an Alphabet",ch);

   else

       printf("The entered character %c is not an Alphabet",ch);

   return 0;

}

Answered by ks0140422
0

Answer:

zyada mat bol

Explanation:

main tera bakwas sunne ke liye brainly download nahi kiya

Similar questions