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 public static void main(String[] args) { //Hi //한초가 만들었어용! int score = 52; Scanner scanner = new Scanner (System.in); System.out.println("값을 입력하세요"); int num = scanner.nextInt(); if(num score) System.out.println(num + "보다 작습니다"); else System.out.println("정답"); scanner.close(); } } } Colored by Colo..
예제코드,소스코드(프로그래밍 소스)를 블로그에 작성할때 직접 색깔을 입히느라 힘드셨을겁니다..특히 블로그,웹사이트에 예제코드,강좌 등을 올리시는분들이요! 하지만 이제는 프로그램하나만 있으면 편하게 색깔을 입히실 수 있습니다. 그 프로그램이름은?? 바로 color scripter 라는 프로그램입니다.원하는 소스코드를 프로그램에 붙여넣고 소스코드 언어를 선택하면 소스코드에 언어에 맞는 색깔을 입혀주는것 입니다. 그럼 프로그램은 어디서 다운로드할까요? 바로 https://colorscripter.com/pcver 이 링크에서 프로그램을 다운로드받을 수 있습니다. 그리고 다운로드가 완료되면 설치를 해야하겠죠?그런데... 프로그램 실행할 프로그램이 없는 경우가 있습니다.(또는 실행 불가능)그럴때는! http://..
public static void main(String[] args) {// 안녕하세요!//한초가 만들었어요!Scanner scanner = new Scanner(System.in); System.out.println("몇월을 원하시는거죠?"); int month = scanner.nextInt(); scanner.close(); switch (month) { case 1: System.out.println(month + "월은 겨울 입니다!"); break; case 2: System.out.println(month + "월은 겨울 입니다!"); break; case 3: System.out.println(month + "월은 봄 입니다!"); break; case 4: System.out.printl..
- Total
- Today
- Yesterday