Skip to content
Snippets Groups Projects
Commit 361bd517 authored by deroubaf's avatar deroubaf
Browse files

mise à jour du scan et correction de bug mineur

parent 9cc9bfed
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,8 @@ public class Scan {
try {
res = sc.nextInt();
} catch (Exception e) {
System.out.println("error");
res = -1;
System.out.println("Veuillez entrer un nombre entre 1 et " + nbOfQuestion);
sc.nextLine();
}
} while (res <= 0 || res > nbOfQuestion);
sc.close();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment