Facebook
From Maria Georgescu, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 146
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.    // Problema 1
  8.    
  9.    int nr, r;
  10.    
  11.    cin>> nr;
  12.    while(nr!=0){
  13.        r = nr% 10;
  14.        cout<< r << " ";
  15.        nr= nr/10;
  16.    }
  17.  
  18.     return 0;
  19. }
  20.