You are viewing a single comment's thread. Return to all comments →
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */ int s[26]={0},c[26]={0},i,n; char str[1000]; scanf("%s",str); n=strlen(str); for(i=0;i<n;i++) { if(str[i]>='a' && str[i]<='z') s[str[i]-'a']++; else if(str[i]>='A' && str[i]<='Z') c[str[i]-'A']++; } for(i=0;i<26;i++) { if(!(s[i]==1 && c[i]==1)) printf("not pangram"); return 0; } printf("pangram"); return 0;
}
I follow your method but i have issue in this code.Can you please correct this
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 →
int main() {
}
I follow your method but i have issue in this code.Can you please correct this