896+ Capstone Project is Available: Whatsapp: +91-7011258995, Email: sharecodepoint@gmail.com

How to find the positive and negative number using java program

Program to find the positive and negative number

import java.util.*;

public class ps{

public static void main(String arg[]){

   int number = 12.5;
   if (number < 0){
    System.out.println(number + "Negative");
   else if (number > 0){
   System.out.println(number + "Positive");
    System.out.println(number + "is Zero");


Sharecodepoint is the junction where every essential thing is shared for college students in the well-defined packets of codes. We are focused on providing you the best material package like Question papers, MCQ'S, and one NIGHT STUDY MATERIAL. facebook twitter youtube instagram

Post a Comment

Previous Post Next Post

Contact Form