Skip to content

Commit

Permalink
even odd in java
Browse files Browse the repository at this point in the history
  • Loading branch information
suhanigupta23 authored Dec 25, 2023
1 parent 4a1b4c9 commit b2c30f5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions evenoddjava.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
public class Program
{
public static void main(String[] args)
{
int x=11;
if (x%2==0)
{
System.out.println(x+" is even");
}
else
{
System.out.println(x+" is odd");
}
System.out.println("HARDWORK IS BETTER THAN SMART WORK.");
}
}

0 comments on commit b2c30f5

Please sign in to comment.