Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int a;
- b=false;
- bool = b;
- cin >> a;
- while (a>0) {
- if (a%2==1) { b=true }
- a=a/10;
- }
- if ( b== true) {
- cout << "tak" << endl;
- }
- else {
- cout << "nie" << endl;
- }
Add Comment
Please, Sign In to add comment