?? program9.txt
字號:
var oil,help:char;
kg,total:real;
begin
write('Enter the amount in kilograms(kg):');readln(kg);
write('Enter type of the gasonline (a,b,c):');readln(oil);
write('Enter type for service (f,m,e):');readln(help);
case oil of
'a':total:=1.50*kg;
'b':total:=1.35*kg;
'c':total:=1.18*kg;
else writeln('Input Error !');
end;
case help of
'f':;
'm':total:=total*(1-0.05);
'e':total:=total*(1-0.10);
else writeln('Input Error !');
end;
writeln;
writeln('Total is ',total:10:2);
end.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -