write a program in JavaScript check whether number is positive or negative
Answers
Answered by
3
Answer:
import java.util.*;
public class positive
{
public static void main(String arts[ ])
{
Scanner sc=newScanner(system.in);
int a;
a=sc.nextInt;
if(a>0)
system.out.println("positive="+a);
else
system.out.println("Negative="+a);
}
}
Similar questions