Computer Science, asked by sambhavilaxmanshete, 3 months ago

write a program in JavaScript check whether number is positive or negative​

Answers

Answered by surlipika04
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