We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 435e709 commit 66a29b9Copy full SHA for 66a29b9
nestif.java
@@ -0,0 +1,25 @@
1
+class nestif
2
+{
3
+public static int n=20;
4
+public static void main(String []args)
5
6
+
7
+ if(n == 20)
8
+ {
9
+ if((n%2)==0)
10
11
+ System.out.println("no is even");
12
13
+ }
14
+ else
15
16
+ System.out.println("odd");
17
18
19
20
21
+ System.out.println("enter another number");
22
23
24
+}
25
0 commit comments