jzxx1769汉译英

题目描述
输入某个整数,如果输入的整数在1-9范围内,则输出相对应的单词,
否则输出'out'
 
输入
一行,一个整数n。
 
输出
整数n相对应的小写英文单词或'out'。
 
样例输入 
1
样例输出 
one

满分代码:
var n:longint;
begin
read(n); 
if n=1 then write('one');
if n=2 then write('two');
if n=3 then write('three');
if n=4 then write('four');
if n=5 then write('five');
if n=6 then write('six');
if n=7 then write('seven');
if n=8 then write('eight');
if n=9 then write('nine');
if n>=10 then write('out');
end.

猜你喜欢

转载自blog.csdn.net/lyz060510/article/details/82936028
今日推荐