Jump to content

Arithmetic/Integer: Difference between revisions

Arithmetic/Integer en Asymptote
(→‎{{header|Verilog}}: Added power)
(Arithmetic/Integer en Asymptote)
Line 887:
33 % 6 = 3
33 ^ 6 = 12914679699</pre>
 
 
=={{header|Asymptote}}==
<lang Asymptote>int a = -12;
int b = 7;
 
int suma = a + b;
int resta = a - b;
int producto = a * b;
real division = a / b;
int resto = a % b;
int expo = a ** b;
 
write("Siendo dos enteros a = -12 y b = 7");
write(" suma de a + b = ", suma);
write(" resta de a - b = ", resta);
write(" producto de a * b = ", producto);
write(" división de a / b = ", division);
write(" resto de a mod b = ", resto);
write("exponenciación a ^ b = ", expo);</lang>
 
=={{header|AutoHotkey}}==
2,130

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.