You are viewing a single comment's thread. Return to all comments →
smaller C solution int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */ char c; int a[26]={0},i; while(scanf("%c",&c)==1) { if(c>=65&&c<=90) {a[c-65]++;} else if(c>=97&&c<=122) {a[c-97]++;} } for(i=0;i<26;i++) { if(a[i]==0) break; } if(i==26) printf("pangram"); else printf("not pangram"); return 0;
}
Seems like cookies are disabled on this browser, please enable them to open this website
Pangrams
You are viewing a single comment's thread. Return to all comments →
smaller C solution int main() {
}