不是VIP会员,不能显示答案

题目解答

题目:
var
st: string;
len, i:integer;
begin
readln(st);
len:=length(st);
for i:=1 to len do
if (st[i]>=’a') and (st[i]<=’z') then
st[i]:=chr(ord(st[i])-ord('a')+ord('A'));
writeln(st);
end.
输入: Hello, my name is Lostmonkey.
输出:HELLO, MY NAME IS LOSTMONKEY.
考点: 0
分析:
解答: 将所有的字符转化为大写
评论:
老师: 0