Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int numb;
- cin >> numb;
- cout << numb % 10 << endl;
- cout << numb % 100 / 10 << endl;
- cout << numb % 1000 / 100 << endl;
- cout << numb % 10000 / 1000 << endl;
- cout << numb % 100000 / 10000 << endl;
- cout << numb % 1000000 / 100000 << endl;
- cout << numb % 10000000 / 1000000 << endl;
- cout << numb % 100000000 / 10000000 << endl;
- cout << numb % 1000000000 / 100000000 << endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement