Jump to content

Arithmetic/Integer: Difference between revisions

no edit summary
(Second implementation, python inspired)
No edit summary
Line 957:
('a/b=%1' % { a // b }) displayNl.
('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}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.