#include<iostream>
using namespace std;
int main() {
int n, tram, chuc, donvi;
cout<<"Nhap vao mot so co 3 chu so: ";
cin>>n;
tram = n / 100;
chuc = (n%100) / 10;
donvi = (n%100) % 10;
cout<<"Chu so hang tram cua so "<<n<<" la: "<<tram<<endl;
cout<<"Chu so hang chuc cua so "<<n<<" la: "<<chuc<<endl;
cout<<"Chu so hang don vi cua so "<<n<<" la: "<<donvi<<endl;
return 0;
}
#include <bits/stdc++.h>
using namespace std;
#define ll long long
ll a;
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin>>a;
cout<<a/100<<"\n"<<(a/10)%10<<"\n"<<a%10;
}
out tu đúng