Advertisement
Guest User

sprawdzanie

a guest
Apr 6th, 2020
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. int isNumber(string thing){
  2.     for(int i=0; i<thing.length(); i++){
  3.         if( thing[i]==45 || thing[i]<48 || thing[i]>57)
  4.             return 0;
  5.     }
  6.     return 1;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement