import java.util.Scanner;
public class JPA103 {
public static void main (String [] argvs){
Scanner sc= new Scanner(System.in);
double total=0;
System.out.println("Please input:");
for(int i = 0;i<3;i++){
total+=sc.nextDouble();
}
System.out.printf("Average: %.2f",total/3);
}
}
沒有留言:
張貼留言