Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdio.h>
  3. #include <cstdlib>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. system("color 02");
  10. int a,s,z,u;
  11. cout<<"Insert:\n";
  12. cin>>a;
  13. s=a/100;
  14. z=(a/10)%10;
  15. u=a%10;
  16.  
  17. cout<<"S= "<<s<<endl;
  18. cout<<"Z= "<<z<<endl;
  19. cout<<"U= "<<u<<endl;
  20.  
  21. printf("Numarul este %d%d%d", s,z,u);
  22. cout<<"\n";
  23. cout<<"\n";
  24.  
  25. return 1;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement