Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Arithmetic-Integer/Metafont/arithmetic-integer.metafont
Normal file
18
Task/Arithmetic-Integer/Metafont/arithmetic-integer.metafont
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
string s[];
|
||||
message "input number a: ";
|
||||
s1 := readstring;
|
||||
message "input number b: ";
|
||||
s2 := readstring;
|
||||
a := scantokens s1;
|
||||
b := scantokens s2;
|
||||
|
||||
def outp(expr op) =
|
||||
message "a " & op & " b = " & decimal(a scantokens(op) b) enddef;
|
||||
|
||||
outp("+");
|
||||
outp("-");
|
||||
outp("*");
|
||||
outp("div");
|
||||
outp("mod");
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue