Arithmetic/Integer: Difference between revisions
Content added Content deleted
(Second implementation, python inspired) |
No edit summary |
||
Line 957: | Line 957: | ||
('a/b=%1' % { a // b }) displayNl. |
('a/b=%1' % { a // b }) displayNl. |
||
('a%%b=%1' % { a \\ b }) displayNl.</lang> |
('a%%b=%1' % { a \\ b }) displayNl.</lang> |
||
=={{header|Snobol4}}== |
|||
<lang snobol4> |
|||
output = "Enter first integer:" |
|||
first = input |
|||
output = "Enter second integer:" |
|||
second = input |
|||
output = "sum = " first + second |
|||
output = "diff = " first - second |
|||
output = "prod = " first * second |
|||
output = "quot = " (qout = first / second) |
|||
output = "rem = " first - (qout * second) |
|||
end</lang> |
|||
=={{header|Standard ML}}== |
=={{header|Standard ML}}== |