public class HelloWorld{
public static void main(String[] args) {
String _one="我喜欢看黑丝!!漂亮姐姐!!";
String _two="www.imooc.com";
System.out.printf(_one);
System.out.printf(_two);
}
}
public static void main(String[] args) {
String _one="我喜欢看黑丝!!漂亮姐姐!!";
String _two="www.imooc.com";
System.out.printf(_one);
System.out.printf(_two);
}
}
2021-08-02
最新回答 / 翟浩燃
首先,不要细究每个月有多少天,因为细究下去会遇到本年的1月1日是否是星期一、本年是否是闰年等这种没有意义的问题。从题目的信息中能知道一个月有4周,所以要想知道输入的周是第几个月一般会想到把周数除4。将1月的1、2、3、4周分别除4:1/4=0,2/4=0,3/4=0,4/4=1再将2月的5、6、7、8周分别除4:5/4=1,6/4=1,7/4=1, 8/4=2……由上面的规律可以总结出:当“周数%4 == 0”,月数就是“周数/4”,否则就是“周数/4+1”然后,能不能不要判断呢?可以。。。仔细琢磨上面1...
2021-07-31
public class HelloWorld {
public static void main(String[] args) {
int score = 94;
String sex = "女";
if(score>80){
if(sex.equals("女")){
System.out.print("进入女子组决赛");
}else{
System.out.print("进入男子组决赛");}
}else{
System.out.print("淘汰");
}
}
}
public static void main(String[] args) {
int score = 94;
String sex = "女";
if(score>80){
if(sex.equals("女")){
System.out.print("进入女子组决赛");
}else{
System.out.print("进入男子组决赛");}
}else{
System.out.print("淘汰");
}
}
}
2021-07-30