Skip to content

Commit b2d9673

Browse files
committed
check multiple of two
1 parent 3423b36 commit b2d9673

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Basic Codes/multiple_of_two.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
class multiple_of_two {
2+
public static void main(String args[])
3+
{
4+
int a = 2;
5+
if(a%2==0)
6+
{
7+
System.out.print("Multiple of two");
8+
}
9+
else
10+
{
11+
System.out.print("Not multiple of two ");
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)