init
This commit is contained in:
16
Question03-if/src/PTra03_03.java
Normal file
16
Question03-if/src/PTra03_03.java
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* PTra03_03.java
|
||||
* 作成 Rhizome
|
||||
*------------------------------------------------------------
|
||||
* Copyright(c) Rhizome Inc. All Rights Reserved.
|
||||
*/
|
||||
public class PTra03_03 {
|
||||
public static void main(String[] args) {
|
||||
int num = 10;
|
||||
|
||||
// TODO numが 2で割り切れる かつ 5で割り切れるという条件式を記述してください
|
||||
if () {
|
||||
System.out.println(num + "は2でも5でも割り切れます。");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user