Jump to content

Arithmetic/Integer: Difference between revisions

m
Alphabetized.
m (Alphabetized.)
Line 153:
System.out.println("remainder of a / b = " + (a % b));
}
 
=={{header|MAXScript}}==
x = getKBValue prompt:"First number"
y = getKBValue prompt:"Second number:"
format "Sum: %\n" (x + y)
format "Difference: %\n" (x - y)
format "Product: %\n" (x * y)
format "Quotient: %\n" (x / y)
format "Remainder: %\n" (mod x y)
 
=={{header|LSE64}}==
Line 175 ⟶ 165:
" A/B=" ,t 2dup / , nl \
" A%B=" ,t % , nl
 
=={{header|MAXScript}}==
x = getKBValue prompt:"First number"
y = getKBValue prompt:"Second number:"
format "Sum: %\n" (x + y)
format "Difference: %\n" (x - y)
format "Product: %\n" (x * y)
format "Quotient: %\n" (x / y)
format "Remainder: %\n" (mod x y)
 
=={{header|Pascal}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.