Advertisement
Josif_tepe

Untitled

Apr 11th, 2023
662
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     int broj;
  6.     cin >> broj;
  7.    
  8.     while(broj > 0) {
  9.         int cifra = broj % 10;
  10.         cout << cifra << " ";
  11.         broj /= 10;
  12.     }
  13.     return 0;
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement