展开全部
import java.util.Scanner;
public class Test {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);// 获取键盘输入
double a = sc.nextDouble();
double b = sc.nextDouble();
double c = sc.nexDouble();
System.out.println("The average of the input is:"+(a+b+c)/3.0);
System.out.println("The multi of the input is:"+(a*b*c));
}
public class Test {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);// 获取键盘输入
double a = sc.nextDouble();
double b = sc.nextDouble();
double c = sc.nexDouble();
System.out.println("The average of the input is:"+(a+b+c)/3.0);
System.out.println("The multi of the input is:"+(a*b*c));
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
考试还可以这样?
public class Test {
public static void main(String[] args) {
int a = 3;
int b = 15;
int c = 20;
double avergae = (double)(a + b + c) / 3;
long mul = a * b * c;
System.out.println("平均" + avergae);
System.out.println("乘积" + mul);
}
}
public class Test {
public static void main(String[] args) {
int a = 3;
int b = 15;
int c = 20;
double avergae = (double)(a + b + c) / 3;
long mul = a * b * c;
System.out.println("平均" + avergae);
System.out.println("乘积" + mul);
}
}
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询