A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
24
Task/Arithmetic-Integer/Inform-7/arithmetic-integer.inf
Normal file
24
Task/Arithmetic-Integer/Inform-7/arithmetic-integer.inf
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
Enter Two Numbers is a room.
|
||||
|
||||
Numerically entering is an action applying to one number. Understand "[number]" as numerically entering.
|
||||
|
||||
The first number is a number that varies.
|
||||
|
||||
After numerically entering for the first time:
|
||||
now the first number is the number understood.
|
||||
|
||||
After numerically entering for the second time:
|
||||
let A be the first number;
|
||||
let B be the number understood;
|
||||
say "[A] + [B] = [A + B]."; [operator syntax]
|
||||
say "[A] - [B] = [A minus B]."; [English syntax]
|
||||
let P be given by P = A * B where P is a number; [inline equation]
|
||||
say "[A] * [B] = [P].";
|
||||
let Q be given by the Division Formula; [named equation]
|
||||
say "[A] / [B] = [Q].";
|
||||
say "[A] mod [B] = [remainder after dividing A by B].";
|
||||
end the story.
|
||||
|
||||
Equation - Division Formula
|
||||
Q = A / B
|
||||
where Q is a number, A is a number, and B is a number.
|
||||
Loading…
Add table
Add a link
Reference in a new issue