DEV Community

hema latha
hema latha

Posted on

if else condition program_basic

package day1;

public class demo2 {
public static void main(String[] args) {
int number = 13;
//Check if the number is divisible by 2 or not
if(number%2==0)
{
System.out.println("even number");

}
else
{

System.out.println("odd number");

}

}

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more