Advertisement
ArfIsAToe

zatla ma3ach t3and

Nov 11th, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.24 KB | None | 0 0
  1. Program zatla_ma3ach_t3aned;
  2. Uses Wincrt;
  3. Var
  4.   n,a,d,s: Integer;
  5.  
  6. Begin
  7.  write('N : ');
  8.   readln(n);
  9. s:= 0 ;
  10. d:= 10 ;
  11.  repeat
  12.      s := (n mod 10) + s*10 ;
  13.      writeln(s);
  14.      n := n div 10 ;
  15.      d := d *10;
  16.  until n= 0 ;
  17.  writeln(s);
  18. End.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement