Is Alpha

#include "stdio.h"
char ismyalpha(int ch)
{
     if(ch>='A'&&ch<='Z'||ch>='a'&&ch<='z')
     return (1);
     else
     return (0);
}
int main (void)
{
    char x;
    printf("Please enter Alphabet\n");
    scanf("%c", &x);
    printf("%d\n",al_pha(x));
    system("pause");
    return 0;
}

0 comments:

Post a Comment