Professional Documents
Culture Documents
Programa en Python:
x = float(raw_input())
y = float(raw_input())
print x+y
Programa en Pascal:
Programa en C:
#include <stdio.h>
main(){
double x, y;
scanf ("%lf", &x); scanf ("%lf", &y);
printf ("%lf\n", x+y);
}
Programa en Java:
import java.util.Locale;
import java.util.Scanner;
public class Suma {
public static void main(String[] args) {
double x, y;
Scanner teclado = new Scanner(System.in);
teclado.useLocale(Locale.US);
x = teclado.nextDouble(); y = teclado.nextDouble();
System.out.println (x+y);
}
}
Programa para el Java:
Programa ejecutable:
00000000 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
00000010 02 00 03 00 01 00 00 00 80 83 04 08 34 00 00 00
00000020 40 11 00 00 00 00 00 00 34 00 20 00 09 00 28 00
00000030 1e 00 1b 00 06 00 00 00 34 00 00 00 34 80 04 08
00000040 34 80 04 08 20 01 00 00 20 01 00 00 05 00 00 00
00000050 04 00 00 00 03 00 00 00 54 01 00 00 54 81 04 08
00000060 54 81 04 08 13 00 00 00 13 00 00 00 04 00 00 00
00000070 01 00 00 00 01 00 00 00 00 00 00 00 00 80 04 08
00000080 00 80 04 08 64 06 00 00 64 06 00 00 05 00 00 00
00000090 00 10 00 00 01 00 00 00 14 0f 00 00 14 9f 04 08
000000a0 14 9f 04 08 04 01 00 00 0c 01 00 00 06 00 00 00
000000b0 00 10 00 00 02 00 00 00 28 0f 00 00 28 9f 04 08
000000c0 28 9f 04 08 c8 00 00 00 c8 00 00 00 06 00 00 00
000000d0 04 00 00 00 04 00 00 00 68 01 00 00 68 81 04 08
000000e0 68 81 04 08 44 00 00 00 44 00 00 00 04 00 00 00
000000f0 04 00 00 00 50 e5 74 64 6c 05 00 00 6c 85 04 08
00000100 6c 85 04 08 34 00 00 00 34 00 00 00 04 00 00 00
... ... ... ...