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