일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Python
- index
- LSTM
- E-P1
- Lotto
- RNN
- synology
- CNN
- pip
- keras
- SciPy
- ipad
- DFS
- dataframe
- pandas
- Button
- install
- Numpy
- SPL
- Splunk
- GitHub
- mean
- javascript
- 삼성소프트웨어멤버십
- imread
- mariadb
- GT-S80
- pycharm
- Series
- 알고리즘
Archives
- Today
- Total
잠토의 잠망경
EX3 본문
import java.io.*; public class ex3 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int inVal = 0; try { do { System.out.print("정수를 입력해주세요.: "); inVal = Integer.parseInt(in.readLine()); //try catch 문이 안쓸경우 error를 내보낸다. if (100 == inVal) { System.out.println("100이 입력되었습니다."); break; } else if (10 <= inVal && inVal <= 15) { System.out.println("10~15사이 입니다."); } else { System.out.println("10~15사이 가 아닙니다."); } } while (true); } catch (Exception e) { System.out.println("에러: "+e); } finally { System.out.println("종료합니다."); } } }
Comments