Advertisement
kostes

3

Jan 15th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int c, x;
  6. cout << "vvedite chislo\n";
  7. cin >> c;
  8. cout << "vvedite x\n";
  9. cin >> x;
  10. while(c > 0)
  11. {
  12. int a = c % 10;
  13. if(a > x) cout << a << " ";
  14. c /= 10;
  15. }
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement