Private Sub CommandButton1_Click()
Cells(1, 1) = 1
Cells(1, 2) = 2
Cells(1, 3) = 3
Cells(1, 4) = 4
Cells(1, 5) = 5
Cells(1, 6) = 6
Cells(1, 7) = 7
Cells(1, 8) = 8
Cells(1, 9) = 9
Cells(1, 10) = 10
End Sub
import java.net.*;
public class Test1 {
public static void main(String args[]){
int i = 1;
int j = 1;
for(int k = 1; k <= 3; k++){
System.out.println("|============|============|============|");
for(int m = i; m <= 9; m++){
for(int n = j; n < j+3; n++){
System.out.printf("|%d*%d=%2d", n, m, m*n);
}
System.out.print("|");
System.out.println();
}
j = j + 3;
}
System.out.println("|============|============|============|");
}
}
class Bpp
{
public static void main(String[] args)
{
int i;
for(i=1;i<=10;i++){
System.out.println("i="+i);
}
}
}
留言列表