daily pastebin goal
90%
SHARE
TWEET

Untitled

a guest May 16th, 2018 109 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Top