Advertisement
Vexus

Exercise 5.1

Oct 16th, 2014
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1. package exercise;
  2.  
  3. public class E51 {
  4.         public static void main(String[] args){
  5.         int Number = 1;{
  6.         if (Number > 0) {System.out.println("is positive");}
  7.         else if (Number == 0) {System.out.println("is zero");}
  8.         else {System.out.println("is negative");}
  9.        
  10.         }}
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement