已采纳回答 / 慕后端4074691
public class HelloWorld{ public static void main(String[] args) {String myLove="我爱慕课网";String myURL="www.imooc.com";System.out.println(myLove);System.out.println(myURL);}}
2020-09-03
已采纳回答 / 杨大勇2不2
// 只要成绩小于60,就循环执行加分操作,并统计加分次数 if(score<60){ score++; count++; }if不是循环 是判断 改成for或者while 就可以了
2020-09-02
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
for (;(num/=10)>0;count ++);
System.out.println("它是个"+ (count+1)+"位的数!");
public static void main(String[] args){
int num = 999;
int count = 0;
for (;(num/=10)>0;count ++);
System.out.println("它是个"+ (count+1)+"位的数!");