java,小程序練習while和do while,猜數字

package test; import java.util.Scanner; //猜數字遊戲 public class GuessGame { public static void main(String[] args) { Scanner scan = new Scanner(System.in); //生成1到1000的隨機數 int num = (int)(Math.rand
相關文章
相關標籤/搜索