Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;// ||sau
- int main() {
- unsigned p=1;
- unsigned n,cn,uc;
- cout<<"n=";cin>>n;
- cn=n;
- n/=10;
- while (n!=0) {
- p*=10;
- n/=10;
- }
- n=cn%p;
- cout<<n/10;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement