Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
pangram
#include <bits/stdc++.h> using namespace std; int main() { int k; char str[400]; cout<<"Enter the sentence:- "<<endl; for(k=0;k<400;k++) {cin>>str[k];} int i=0; int alphabate[26]={}; int j; while(str[i]!='\0') { if(str[i]>='a' and str[i]<='z') { j=str[i]-'a'; ++alphabate[j]; } ++i; } int count; for(i=0;i<26;i++) {count--; //cout<<char(i+'a')<<": "<<alphabate[i]<<" "<<endl; if( alphabate[i]==0 ){cout<<"False"<<endl;break;} else {count=1;} } //cout<<count<<endl; if(count==1){cout<<"True";} return 0; }
run
|
edit
|
history
|
help
0
Parenthesis checker
inheritance
RegexReplace
Iviewb
ddd
ArrAdSubMul
Default copy
BubDoubArray2
C++ object lifecycle example
codechef