Recent Posts

9-latest-250px-course

Write a C program to Check whether the given character is an alphabet or not

Write a C program to Check whether the given character is an alphabet or not



Program:-     

#include <stdio.h>

int main()

{

char ch;

printf(“Enter a character: “);

scanf(” %c”,&ch);

printf(“\n”);

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

printf(“%c is an alphabet\n”,ch);

else

printf(“%c is not an alphabet\n”,ch);

return 0;

}

Output:-

....
SHARE

Milan Tomic

Hi. I’m Designer of Blog Magic. I’m CEO/Founder of ThemeXpose. I’m Creative Art Director, Web Designer, UI/UX Designer, Interaction Designer, Industrial Designer, Web Developer, Business Enthusiast, StartUp Enthusiast, Speaker, Writer and Photographer. Inspired to make things looks better.

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment