- public void nineMulTable(){
- for(int i=1,j=1;j<=9;i++){
- System.out.print(i+"x"+j+"="+i*j+" ");
- if(i==j){
- i = 0;
- j++;
- System.out.println();
- }
- }
- }
JAVA中一个for实现99乘法表。
猜你喜欢
转载自www.cnblogs.com/china3356/p/11846524.html
今日推荐
周排行