摘要:
public class Multiplication {public static void main(String[] args){for(int i=1;i<=9;i++){for(int j=1;j<=i;j++){System.out.print(j+"*"+i+"="+j*i+"\t")... 阅读全文
摘要:
import java.util.Scanner;public class NegativeSequence{public static void main(String[] args){System.out.println("请输入一个整数");Scanner XX=new Scanner(Sys... 阅读全文
摘要:
import java.util.*;public class GuessNumber{//猜数字游戏public static void main(String[] args){Scanner in=new Scanner(System.in);Random MyRandom=new Random... 阅读全文
摘要:
import java.util.*;public class Avg{//求平均值public static void main(String[] args){Scanner in=new Scanner(System.in);System.out.println("请输入学生的人数");int ... 阅读全文
摘要:
//1+2+3+4+......100=?public class Accumulate {//累加求和 public static void main(String[] args){int sum=0;int i=1;while(i<=100){sum=sum+i;i++;}System.out.... 阅读全文