fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. char zbor[10];
  6. cin>>zbor;
  7. int i;
  8. bool ima=0;
  9. for(i=0;i<10;i++)
  10. {
  11. if(zbor[i]>='0' && zbor[i]<='9')
  12. {
  13. ima=1;
  14. break;
  15. }
  16. }
  17. if (ima)
  18. cout<<"vo zborot ima cifra";
  19. else
  20. cout<<"vo zborot nema cifri";
  21. return 0;
  22. }
Success #stdin #stdout 0s 544KB
stdin
qw1erfv
stdout
vo zborot ima cifra