English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
所有分類

點用Free Pascal寫計數機程式? (能用來計+, - *)(一次過)
ex.(這只可計+)
Program lesson1_program3;
var
Num1, Num2, Sum : Integer;

Begin
Write('Input number1 : ');
Readln(Num1);
Writeln('Input number 2 :');
Readln(Num2);
Sum:=Num1+Num2;
Writeln(Sum);
Readln;
end.

我要一次過計到+,-,*. pls help me!!!

2007-03-21 18:20:03 · 1 個解答 · 發問者 Kin Chung, Alex 3 in 電腦與網際網路 軟體

1 個解答

ok, just give you an idea ...
Answer1:=Num1+Num2;
Answer2:=Num1-Num2;
Answer3:=Num1*Num2;
Writeln(Answer1);
Writeln(Answer2);
Writeln(Answer3);

2007-03-22 12:03:03 · answer #1 · answered by alien3333 7 · 0 0

fedest.com, questions and answers