fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <cctype>
  4.  
  5. int main()
  6. {
  7. std::string s="3983166922118810678205990336564718434224120605664143701183608768141905250787782877719783678679061484962365081537093035923501297045164325783140744700987694957532389158400858116442933576455898753759925348456032608650278150327110180834816760596303097286523605280428429436106445252981359910377930818774855112452474332249873412259136132368731917415053983296042291396691439150433279600306468690306707682489567387757087354859605042563344537364880212053587269055695748062646674865811939840510090971364835065252717494840800357338638708817635670004576509737845399272402043442156827044195038802613229625783142492845706197046207004041551342095347194089863859659283335973442255940429503528960000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
  8. for(int i=0;i<s.size();i++)
  9. {
  10. if(!isdigit(s[i]))
  11. {
  12. std::cout<<"non-digit character found!\n";
  13. goto end;
  14. }
  15. }
  16. std::cout<<"no non-digit characters found!\n";
  17. end:
  18. return 0;
  19. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
no non-digit characters found!