0
В чем ошибка???
Package dim.fun; Import java.util.scanner; public class Main { public static void Main (String[] args) { Scanner num = new Scanner(System.in); Int first, second, result; System.out.print("Enter first num"); first = num.nextIn(); System.out.print("Enter second num"); second = num.nextIn(); System.out.println("Enter result num"); result = first + second; System.out.println("number is ..." + results); } }
1 ответ
+ 12
// You've made some silly errors in your code, hope you can get them. Вот исправление:
import java.util.Scanner;
public class Main {
public static void main (String[] args) {
Scanner num = new Scanner(System.in);
int first, second, result;
System.out.print("Enter first num");
first = num.nextInt();
System.out.print("Enter second num");
second = num.nextInt();
System.out.println("Enter result num");
result = first + second;
System.out.println("number is ..." + result);
}
}