Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- #include <cstdlib>
- using namespace std;
- int main()
- {
- system("color 02");
- int a,s,z,u;
- cout<<"Insert:\n";
- cin>>a;
- s=a/100;
- z=(a/10)%10;
- u=a%10;
- cout<<"S= "<<s<<endl;
- cout<<"Z= "<<z<<endl;
- cout<<"U= "<<u<<endl;
- printf("Numarul este %d%d%d", s,z,u);
- cout<<"\n";
- cout<<"\n";
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement