Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. int numb;
  2. cin >> numb;
  3.  
  4. cout << numb % 10 << endl;
  5. cout << numb % 100 / 10 << endl;
  6. cout << numb % 1000 / 100 << endl;
  7. cout << numb % 10000 / 1000 << endl;
  8. cout << numb % 100000 / 10000 << endl;
  9. cout << numb % 1000000 / 100000 << endl;
  10. cout << numb % 10000000 / 1000000 << endl;
  11. cout << numb % 100000000 / 10000000 << endl;
  12. cout << numb % 1000000000 / 100000000 << endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement