langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
14
Task/Integer-comparison/Pascal/integer-comparison.pascal
Normal file
14
Task/Integer-comparison/Pascal/integer-comparison.pascal
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
program compare(input, output);
|
||||
|
||||
var
|
||||
a, b: integer;
|
||||
|
||||
begin
|
||||
write('Input an integer number: ');
|
||||
readln(a);
|
||||
write('Input another integer number: ');
|
||||
readln(b);
|
||||
if (a < b) then writeln(a, ' is less than ', b);
|
||||
if (a = b) then writeln(a, ' is equal to ', b);
|
||||
if (a > b) then writeln(a, ' is greater than ', b);
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue