米果文化是什么:写一程序:十行十列,从1到100

来源:百度文库 编辑:神马品牌网 时间:2024/05/11 15:52:54

public class T {
public static void main(String[] args) {
for(int i = 0;i < 10;i++) {
for(int j = 1;i <= 10;j++) {
System.out.print(i*10+j);
System.out.print(" ");
}
System.out.println(" ");
}
}
}

VB:
Dim i As Long, j As Long
For i = 1 To 100
Print i,
If i Mod 10 = 0 Then Print
Next i