package javaapplication14;
public class JavaApplication14 {
public static void main(String[] args) {
//Write a Java program to get a number from the user and print whether it is positive or negative.
int a = 10;
if (a>0)
{
System.out.println("The number is positive");
}
else
{
System.out.println("The number is negative");
}
}
}
Comments
Post a Comment