码迷,mamicode.com
首页 > 其他好文 > 详细

pascal倒序输出

时间:2017-01-20 11:20:45      阅读:133      评论:0      收藏:0      [点我收藏+]

标签:write   put   utils   ogr   cal   ons   倒序   pre   input   

 1 program Project6;
 2 
 3 {$APPTYPE CONSOLE}
 4 
 5 uses
 6   SysUtils;
 7 
 8 var
 9   a,b,c,d:integer;
10 
11 
12 begin
13   { TODO -oUser -cConsole Main : Insert code here }
14   writeln(please input456);
15   a:=456 div 100;
16   b:=456 mod 100;
17   c:=b div 10;
18   d:=b mod 10;
19   writeln(d*100+c*10+a);
20   readln;
21   end.

 

pascal倒序输出

标签:write   put   utils   ogr   cal   ons   倒序   pre   input   

原文地址:http://www.cnblogs.com/lanjianhappy/p/6322107.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!