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;
- int dv, ch, tr;
- dv = n % 10;
- n/=10;
- ch = n % 10;
- n /= 10;
- tr = n % 10;
- cout << "Don vi: " << dv << " Chuc: " << ch << " Tram: " << tr<<endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement