Skip to content

Commit 4b49d13

Browse files
committed
log117 complete
1 parent fc4feaf commit 4b49d13

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/techacademie/log/LOG117.java

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package techacademie.log;
2+
import java.util.Scanner;
3+
4+
public class LOG117 {
5+
public static void main(String[] args) {
6+
Scanner sc = new Scanner(System.in);
7+
double input; //double pour permettre les chiffres décimaux
8+
9+
do{
10+
System.out.println("Entrez votre chiffre");
11+
input = sc.nextDouble();
12+
}
13+
while(!checkNum(input));
14+
15+
}
16+
17+
static boolean checkNum(double i){
18+
return i >= Math.pow(11.5, 2);
19+
}
20+
}

0 commit comments

Comments
 (0)