일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 삼성소프트웨어멤버십
- DFS
- install
- pycharm
- synology
- SciPy
- imread
- mean
- pandas
- CNN
- RNN
- javascript
- keras
- GT-S80
- Python
- ipad
- pip
- Numpy
- Series
- Button
- mariadb
- LSTM
- dataframe
- GitHub
- 알고리즘
- index
- Splunk
- E-P1
- Lotto
- SPL
Archives
- Today
- Total
잠토의 잠망경
Ex2 본문
import java.io.*; public class ex2 { /** * @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 { while (true) { System.out.print("정수를 입력하세요: "); inVal = Integer.parseInt(in.readLine()); if ((inVal % 3) != 0) System.out.println("3의 배수가 아닙니다."); else { System.out.println("3의 배수입니다."); break; } } } catch (Exception e) { System.out.println("에러다:Because: " + e); } finally { System.out.println("프로그램 끝"); } } }
Comments