Guest User

Untitled

a guest
May 16th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int a;
  4. b=false;
  5. bool = b;
  6. cin >> a;
  7. while (a>0) {
  8. if (a%2==1) { b=true }
  9. a=a/10;
  10. }
  11. if ( b== true) {
  12. cout << "tak" << endl;
  13. }
  14. else {
  15. cout << "nie" << endl;
  16. }
Add Comment
Please, Sign In to add comment