Advertisement
Josif_tepe

Untitled

Mar 22nd, 2024
549
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. #include <map>
  4. #include <set>
  5. using namespace std;
  6. typedef long long ll;
  7.  
  8.  
  9.  
  10. int main() {
  11.     int x;
  12.     cin >> x;
  13.     while(x > 0) {
  14.         int cifra = x % 10;
  15.         cout << cifra << " ";
  16.         x /= 10;
  17.     }
  18.     return 0;
  19. }
  20. //   2 1 3 3
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement