A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
10
Task/Arithmetic-Integer/Maple/arithmetic-integer-1.maple
Normal file
10
Task/Arithmetic-Integer/Maple/arithmetic-integer-1.maple
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
DoIt := proc()
|
||||
local a := readstat( "Input an integer: " ):
|
||||
local b := readstat( "Input another integer: " ):
|
||||
printf( "Sum = %d\n", a + b ):
|
||||
printf( "Difference = %d\n", a - b ):
|
||||
printf( "Product = %d\n", a * b ):
|
||||
printf( "Quotient = %d\n", iquo( a, b, 'c' ) ):
|
||||
printf( "Remainder = %d\n", c ); # or irem( a, b )
|
||||
NULL # quiet return
|
||||
end proc:
|
||||
Loading…
Add table
Add a link
Reference in a new issue