Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

reversenumber

Program ReveseNum;
var a,b,c,d,temp:integer;
begin
  writeln('Input a number with 4 digit.');
  readln(a,b,c,d);
  temp:=d;
  d:=a;
  a:=temp;
  temp:=b;
  b:=c;
  c:=temp;
  writeln('The number in revrse order is ',a,b,c,d,'.');
end.

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.