Skip to content

Commit 66a29b9

Browse files
authored
Add files via upload
1 parent 435e709 commit 66a29b9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

nestif.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
else
20+
{
21+
System.out.println("enter another number");
22+
}
23+
24+
}
25+
}

0 commit comments

Comments
 (0)