A
Пеобразование к инт округляет до целых
Size: a a a
A
WA
import java.util.Scanner;
public class AverageOfTwoNumbers {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// Write your program here
System.out.println("Give the first number:");
int x = Integer.valueOf(scanner.nextLine());
System.out.println("Give the second number:");
int y = Integer.valueOf(scanner.nextLine());
double average = (double) (x + y) / 2;
System.out.println("The average is " + average);
}
}
KX
import java.util.Scanner;
public class AverageOfTwoNumbers {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// Write your program here
System.out.println("Give the first number:");
int x = Integer.valueOf(scanner.nextLine());
System.out.println("Give the second number:");
int y = Integer.valueOf(scanner.nextLine());
double average = (double) (x + y) / 2;
System.out.println("The average is " + average);
}
}
ДД
ДД
ДД
KS
СП
СП
KS
Ф
СП
DA
[Job(presentPost=Job(presentPost=должность 1, organization=, date=), Job(presentPost= organization=Организация1, organization=, date=), Job(presentPost= date=Дата1), organization=, date=), Job(presentPost=Job(presentPost=должность 2, organization=, date=), Job(presentPost= organization=Организация2, organization=, date=), Job(presentPost= date=Дата2), organization=, date=)]...
DA
Ф
ДД
ДД
I
ДД
ДД