-->
当前位置:首页 > 题库

PROGRAMMING:Define class

Luz5年前 (2021-05-10)题库452
Please add the following code to complete the output requirements( Note: need to submit full code)

import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int a,b,c,d,e;
a = in.nextInt();
b = in.nextInt();
c = in.nextInt();
d = in.nextInt();
e = in.nextInt();
RR rr = new RR();
double dd = rr.fun(a,b,c,d,e);
System.out.printf("%.2f",dd);
}
}
class RR{
}

###Input format:
Give five positive integers in a row that do not exceed 1000.
###Output format:
Output the average value of 5 integers, retain two decimal places.
###Input example:
```in
1 2 3 4 5
```
###Output example:
```out
three
```






answer:If there is no answer, please comment