로또번호 추첨 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 import java.util.Scanner; public class Test1{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int[]num=new int[6]; int n,i; while(true){ do{ System.out.print("1.로또 추첨 2.종료\n=>"); n=sc.nextInt(); }while(n>2 || n 더보기 스무고개 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 /* 스무고개. 1~100의 숫자 중 컴퓨터가 생각한 수의 값을 10번안에 맞추기 */ import java.util.Scanner; public class Test1{ public static void main(String[] args){ int you,num,cnt=1; int com=(int)(Math.random()*100)+1; Scanner sc=new Scanner(System.in); while(true){ do{ System.out.print("1.스무고개.. 더보기 이전 1 2 3 다음