20 lines
493 B
Java
20 lines
493 B
Java
import java.lang.System;
|
|
import java.util.Scanner;
|
|
|
|
public class App {
|
|
static {
|
|
System.loadLibrary("calc");
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
Scanner sc = new Scanner(System.in);
|
|
System.out.print("Number 1: ");
|
|
int num1 = sc.nextInt();
|
|
System.out.print("Number 2: ");
|
|
int num2 = sc.nextInt();
|
|
|
|
System.out.printf("Nums from C and ASM %d\n", add(num1, num2));
|
|
}
|
|
|
|
private static native int add(int x, int y);
|
|
} |