SUBMISSION LINK
https://www.hackerrank.com/contests/y16csecs/challenges/y16-alphabet-or-not
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
char c;
scanf("%c",&c);
if(((c>='A')&&(c<='Z'))||((c>='a')&&(c<='z')))
{
printf("Yes");
}
else
{
printf("No");
}
return 0;
}
https://www.hackerrank.com/contests/y16csecs/challenges/y16-alphabet-or-not
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
char c;
scanf("%c",&c);
if(((c>='A')&&(c<='Z'))||((c>='a')&&(c<='z')))
{
printf("Yes");
}
else
{
printf("No");
}
return 0;
}
Comments
Post a Comment