Saved Bookmarks
| 1. |
Write a program to find out whether a number is negative or not Java program |
|
Answer» Answer: public class Program1 { public void main (int num) { if (num<0) { System.out.println("Negative NUMBER"); } { System.out.println("Not negative number"); } } }
|
|