- 问答
- 2019-04-01 15:25:22 @
import java.util.Scanner;
import java.io.PrintStream;
public class Main {
public static void main(String[] args) throws java.io.UnsupportedEncodingException {
PrintStream ps = new PrintStream(System.out, true, "UTF-8");
Scanner in = new Scanner(System.in);
int java = in.nextInt();
int web = in.nextInt();
if (java >= 85 ) if(web >= 85) {
System.out.println("你荣获了Java奖学金200蚪币!");
}
else
if(java >= 85) {
System.out.println("你荣获了Java奖学金100蚪币!");
}
else
if(web >= 85) {
System.out.println("你荣获了web奖学金80蚪币!");
}
}
}
3 条评论
-
小熊 (wlnirvana) LV 8 MOD @ 2019-04-03 15:07:48
排版不工整呀老兄
-
2019-04-01 17:04:52@
自己看
-
2019-04-01 17:04:43@
import java.util.Scanner;
import java.io.PrintStream;public class Main {
public static void main(String[] args) throws java.io.UnsupportedEncodingException {
PrintStream ps = new PrintStream(System.out, true, "UTF-8");
Scanner in = new Scanner(System.in);// 请从下一行开始你的程序
int Java = in.nextInt();
int Web = in.nextInt();if (Java >= 85) {
if (Web < 85) {
ps.println("你荣获了Java奖学金100蚪币!");
}
if (Web >= 85) {
ps.println("你荣获了编程奖学金200蚪币!");
}
}
if (Web >= 85) {
if(Java < 85){
ps.println("你荣获了Web奖学金80蚪币!");
}
}}
}
- 1