Author

Topic: pascal (Read 286 times)

full member
Activity: 126
Merit: 100
November 17, 2015, 07:02:14 PM
#2
My favorite programming language. I like it. So I found your error.

Code:

program Lesson1_program3;
var

     Num1, Num2, Sum : integer;

begin
 Write ('Input Number 1:');
 Read(Num1);
 Write('Input number 2:');
 Read(Num2);
 Sum:= Num1 + Num2;
 Write(Sum);
 Read;
end.

Can you run it? I dont have compiler.
sr. member
Activity: 266
Merit: 250
November 17, 2015, 02:51:47 PM
#1
find the error
Code:
Program Lesson1_program3;
Var    WriteIn

     Num1, Num2, Sum : Integer;

Begin
 Write ('Input Number 1:');
 ReadIn(Num1);
 WriteIn('Input number 2:');
 ReadIn(Num2);
 Sum:= Num1 + Num2;
 WriteIn(Sum);
 ReadIn;
End.
Jump to: