edutedu

problema

Sep 18th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. int n, ogl=0,c;
  2. cin>>n;
  3. /*while(n)
  4. {
  5. c=n%10;
  6. ogl=ogl*10+c;
  7. n=n/10;
  8. }
  9. cout<<ogl;*/
  10. for(ogl=0; n!=0; n=n/10)
  11. {
  12. c=n%10;
  13. ogl=ogl*10+c;
  14. }
  15. cout<<ogl;
Advertisement
Add Comment
Please, Sign In to add comment