Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Program zatla_ma3ach_t3aned;
- Uses Wincrt;
- Var
- n,a,d,s: Integer;
- Begin
- write('N : ');
- readln(n);
- s:= 0 ;
- d:= 10 ;
- repeat
- s := (n mod 10) + s*10 ;
- writeln(s);
- n := n div 10 ;
- d := d *10;
- until n= 0 ;
- writeln(s);
- End.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement