题解 | #KiKi算期末成绩#
KiKi算期末成绩
http://www.nowcoder.com/practice/4ef07b4f80fc4027a4b90e2245f8f637
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b= scan.nextInt();
int c= scan.nextInt();
int d= scan.nextInt();
System.out.printf("%.1f", a * 0.2 + b * 0.1 + c * 0.2 + d * 0.5);
}
}
Java基础练习题 文章被收录于专栏
都是一些基础的语法题目,每天可以刷几道。