Disclaimer: Make sure you tried enough before checking the solution
Problem: https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/M
//https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/M //ASCII problem to find if it is a number or a alphabet #include<stdio.h> int main() { char a; scanf("%c",&a); if(a>=48 && a<=57){ printf("IS DIGIT"); } else{ if(a>=65 && a<=90){ printf("ALPHA\n"); printf("IS CAPITAL"); } else{ printf("ALPHA\n"); printf("IS SMALL"); } } return 0; }
Assiut University Training – Newcomers solution