郑州轻工业大学OJ:java1009
作者:互联网
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int a;
int b;
int c;
double average;
Scanner in=new Scanner(System.in);
a=in.nextInt();
b=in.nextInt();
c=in.nextInt();
average=(a+b+c)/3.0;
System.out.println(String.format("%.2f", average));
}
}
标签:OJ,String,int,average,System,nextInt,轻工业,java1009,Scanner 来源: https://blog.csdn.net/weixin_45065220/article/details/91126113