2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
16
Task/Integer-comparison/Maple/integer-comparison.maple
Normal file
16
Task/Integer-comparison/Maple/integer-comparison.maple
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
CompareNumbers := proc( )
|
||||
local a, b;
|
||||
printf( "Enter a number:> " );
|
||||
a := parse(readline());
|
||||
printf( "Enter another number:> " );
|
||||
b := parse(readline());
|
||||
if a < b then
|
||||
printf("The first number is less than the second");
|
||||
elif a = b then
|
||||
printf("The first number is equal to the second");
|
||||
elif a > b then
|
||||
printf("The first number is greater than the second");
|
||||
end if;
|
||||
end proc:
|
||||
|
||||
CompareNumbers();
|
||||
Loading…
Add table
Add a link
Reference in a new issue