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