返回列表 發帖
  1. import java.util.Scanner;

  2. public class Ch05 {

  3.         public static void main(String args[]) {

  4.                 for(int i=1;i<=7;i++ )
  5.         {
  6.              System.out.print(i+"隻青蛙"+i+"張嘴, "+i*2+"個眼睛"+i*4+"條腿, ");
  7.              for(int x=1;x<=i;x++)
  8.                    System.out.print("噗通~");
  9.              System.out.println("跳下水!");
  10.         }

  11. }
  12. }
複製代碼

TOP

返回列表