Skip to content

Instantly share code, notes, and snippets.

@Exom9434
Created May 9, 2024 09:08
Show Gist options
  • Save Exom9434/18863d6fa980902c925a314e835f42a9 to your computer and use it in GitHub Desktop.
Save Exom9434/18863d6fa980902c925a314e835f42a9 to your computer and use it in GitHub Desktop.
/// 노재경
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
boolean isOn = true;
while(isOn){
System.out.println("<<<<[메뉴선택]>>>>");
System.out.println("1. 회원 관리");
System.out.println("2. 과목 관리");
System.out.println("3. 수강 관리");
System.out.println("4. 결제 관리");
System.out.println("5. 종료");
int input = scanner.nextInt();
if(input == 1){
System.out.println("회원 관리 메뉴를 선택했습니다");
}else if(input == 2){
System.out.println("과목 관리 메뉴를 선택했습니다");
}else if(input ==3){
System.out.println("수강 관리 메뉴를 선택했습니다");
}else if(input == 4){
System.out.println("결제 관리 메뉴를 선택했습니다");
}else if(input == 5){
System.out.println("프로그램을 종료합니다.");
scanner.close();
isOn = false;
}else{
System.out.println("입력값이 정확하지 않습니다.");
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment