일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- mean
- SciPy
- synology
- Series
- CNN
- mariadb
- Splunk
- ipad
- GitHub
- pycharm
- index
- Numpy
- DFS
- pandas
- imread
- javascript
- 알고리즘
- SPL
- LSTM
- GT-S80
- Button
- install
- pip
- RNN
- E-P1
- Lotto
- dataframe
- keras
- Python
- 삼성소프트웨어멤버십
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