Computer Science, asked by PerfectNaveen, 5 months ago

Right java program to get the number from the user and print whether it is positive or negative and its flowchart​

Answers

Answered by nafeess2019
0

public class posneg

{

   public static void main(int a)

   {

       if(a>0)

       {

           System.out.println("The no. is positive");

       }

       else

       {

           System.out.println("The no. is negative");

       }

   }

}

Flow chart in attachement

Mark me the Brainliest

Attachments:
Similar questions