본문내용
import java.lang.*;
import java.io.*;
public class Lotto{
public static void main(String[] args) throws Exception{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int[] Lotto = new int[6];
int[] Lottod = new int[6];
int k =0;
for (int a = 0;a
System.out.print((a+1)+"번째숫자 : ");
Lotto[a] = Integer.parseInt(br.readLine());
if (Lotto[a] >45){
System.out.println("1~45까지만 입력하세요");
System.exit(1);
}
else if (Lotto[a]<1) {
System.out.print("1~45까지만 입력하세요");
System.exit(1);
import java.io.*;
public class Lotto{
public static void main(String[] args) throws Exception{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int[] Lotto = new int[6];
int[] Lottod = new int[6];
int k =0;
for (int a = 0;a
Lotto[a] = Integer.parseInt(br.readLine());
if (Lotto[a] >45){
System.out.println("1~45까지만 입력하세요");
System.exit(1);
}
else if (Lotto[a]<1) {
System.out.print("1~45까지만 입력하세요");
System.exit(1);
소개글