Skip to content
This repository has been archived by the owner on Jan 1, 2019. It is now read-only.

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mil1200 authored Oct 1, 2017
1 parent fdec066 commit eb1f4f0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Pascal/addition.pas
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Program additonsample; //name of the program
Var
Num1, Num2, Sum : Integer; //declaration of variables (name : type)

Begin //begin always without ;
Write('Input number 1:');
Readln(Num1); //read from console into variable
Writeln('Input number 2:');
Readln(Num2);
Sum := Num1 + Num2; //addition
Writeln(Sum);
Readln; //read (wait purpose)
End.

0 comments on commit eb1f4f0

Please sign in to comment.