-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAssignment10_continu.java
More file actions
47 lines (33 loc) · 933 Bytes
/
Assignment10_continu.java
File metadata and controls
47 lines (33 loc) · 933 Bytes
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
40
41
42
43
44
45
46
package abhilash_Asignments;
//
public class Assignment10_continu
{
/*
public static void main(String[] args)
{
int a = 8;
// Check if the number is NOT less than 5 AND NOT greater than 15
if (!(a < 5) && !(a > 15))
{
System.out.println("The a is between 5 and 15.");
} else
{
System.out.println("The a is less than 5 or greater than 15.");
}
}
}
*/
public static void main(String[] args)
{
int b = 12;
// Check if the number is NOT less than 5 OR NOT greater than 15
if (!(b < 5) || !(b > 15)) //true
{
System.out.println("The b is not less than 5 or it is not greater than 15.");
}
else
{
System.out.println("The b is less than 5 and greater than 15.");
}
}
}