Arithmetic/Integer: Difference between revisions

no edit summary
m (→‎{{header|REXX}}: change comment in the REXX section header.)
No edit summary
Line 1,636:
</lang>
 
=={{header|Little}}==
<lang C># Maybe you need to import the mathematical funcions
# from Tcl with:
# eval("namespace path ::tcl::mathfunc");
 
void main() {
int a, b;
puts("Enter two integers:");
a = (int)(gets(stdin));
b = (int)(gets(stdin));
puts("${a} + ${b} = ${a+b}");
puts("${a} - ${b} = ${a-b}");
puts("${a} * ${b} = ${a*b}");
puts("${a} / ${b} = ${a/b}, remainder ${a%b}");
puts("${a} to the power of ${b} = ${(int)pow(a,b)}");
}</lang>
 
=={{header|LiveCode}}==
Anonymous user