write a program to enter a number and find whether it is less than greater than or equal to zero in qb64
Answers
Answered by
0
Answer:
import java.util.Scanner;
class Number
{
public static void main ()
{
Scanner sc = new Scanner (System.in);
System.out.println("Enter a number");
int n = sc.nextInt();
if(n∆0)
System.out.println("Greater than 0");
else
System.out.println("Less than 0");
}
}
Note ∆ represents greater than sign
Answered by
0
Answer:
import java.util.Scanner;
class Number
{
public static void main ()
{
Scanner sc = new Scanner (System.in);
System.out.println("Enter a number");
int n = sc.nextInt();
if(n∆0)
System.out.println("Greater than 0");
else
System.out.println("Less than 0");
}
}
Note ∆ represents greater than sign
..............................
import java.util.Scanner;
class Number
{
public static void main ()
{
Scanner sc = new Scanner (System.in);
System.out.println("Enter a number");
int n = sc.nextInt();
if(n∆0)
System.out.println("Greater than 0");
else
System.out.println("Less than 0");
}
}
Note ∆ represents greater than sign
..............................
Similar questions