Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- int n;
- cout << "Nhap n: ";
- cin >> n;
- cout << "So to 10d " << n / 10 << endl;
- n %= 10;
- cout << "So to 5d " << n / 5 << endl;
- n %= 5;
- cout << "So to 2d " << n / 2 << endl;
- n %= 2;
- cout << "So to 1d " << n << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement