fork download
  1.  
  2. #include <iostream>
  3. #include <string.h>
  4. using namespace std;
  5. #define MAX 300
  6. bool check(char s[]){
  7. for (int i=0;s[i]!='\0';i++) if (s[i]>='0'&&s[i]<='9') return false;
  8. return true;
  9. }
  10.  
  11.  
  12. int main(){
  13. char s[MAX];
  14. cin.getline(s,MAX);
  15. if (check(s)==false) cout << "CHUOI KHONG HOP LE.";
  16. else cout << s;
  17.  
  18. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
Standard output is empty