pascal编程

从键盘输入任意长度的一串字符,以“*”号结束,用递归的方法将这串字符中的数字字符反序输出。如Delphi6TP70Ada586*,输出685076

program ygb;
procedure p;
var c:char;
begin
read(c);
if c<>'*' then
begin
p;
if (c>='0') and (c<='9') then write(c);
end;
end;

begin
p;
end.
温馨提示:答案为网友推荐,仅供参考
第1个回答  2010-02-21
放大是否倒萨
相似回答