repl.it
Java

No description

fork
loading
Files
  • Main.java
  • jdt.ls-java-project
Main.java
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
import java.util.Scanner;


class Main {
  public static void main(String[] args) {
boolean a = false;
boolean b = false;
boolean c = false;
   Scanner input = new Scanner(System.in);
     int i = 0;
    while (i < 10) {
  System.out.println("Is input a True or False?");
  a = input.nextBoolean();
  System.out.println("Is input b True or False");
  b = input.nextBoolean();
  System.out.println("Is input c True or False");
  c = input.nextBoolean();
  


  System.out.println((a&&!b)||(b&&c));
i++; }






    
 }
 }