JAVA 手動控制列出1到10
class Test
{
public static void main(String[] args)
{
System.out.println("1");
System.out.println("2");
System.out.println("3");
System.out.println("4");
System.out.println("5");
System.out.println("6");
System.out.println("7");
System.out.println("8");
System.out.println("9");
System.out.println("10");
}
}
************
JAVA迴圈(10到1)
class Test
{
public static void main(String[] args)
{
for (int i = 10; i > 0; i--) {
System.out.println(i);
}
}
}
************
VB迴圈
Private Sub CommandButton1_Click()
For i = 1 To 9
Cells(1, i) = i
Next i
End Sub
沒有留言:
張貼留言