Advertisement
STANAANDREY

ex4

Jan 18th, 2019
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.  unsigned long n,ogl=0;
  7.  ogl=0;
  8.  cout<<"n=";cin>>n;
  9.  while (n)
  10. {
  11.     ogl=ogl*10+n%10;
  12.     n/=10;
  13. }
  14.  cout<<"oglindit="<<ogl;
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement