17 lines
455 B
Plaintext
17 lines
455 B
Plaintext
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();
|