Bonjour,

Pourquoi ce code ne fonctionne-t-il pas ? Je voudrais une explication simple, s'il vous plait.



Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
31
32
33
34
35
36
37
38
39
package jazi1;
 
import java.util.Scanner;
 
public class jazi7while2 extends jazi7while1 {
 
	public static void main(String[] args) {
		// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int Reponse;
String Reponse1;
char boucle = 'O' ;
 
while (boucle == 'O');
{
System.out.println("Comment tu t'appelle????");
Reponse1 = sc.nextLine();
System.out.println("Bonjour  " + Reponse1);
System.out.println("Qu'elle aqe as-tu ??");
Reponse = sc.nextInt();
if (Reponse >= 18)
{
	System.out.println("vous etes le bien venu");
}
else {
	System.out.println("vous etes trop jeune");	
}
 
 
 
System.out.println("vous voulez reesseillez ????");
boucle = sc.nextLine().charAt(0);
 
}
System.out.println("bye bye");
 
	}
 
}