Jump to content

Arithmetic/Integer: Difference between revisions

no edit summary
m (Spelling/grammar/aesthetics.)
No edit summary
Line 94:
(format t "a / b = ~a~%" (/ a b))
(format t "a % b = ~a~%" (mod a b))))
 
=={{header|D}}==
 
import std.stdio, std.string;
void main()
{
auto a = readln().atoi(), b = readln().atoi();
writefln("a + b = ", a+b, "
a - b = ", a-b, "
a * b = ", a*b, "
a / b = ", a/b, "
a % b = ", a%b);
}
 
=={{header|E}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.