Advertisement
joseleonweb

Untitled

Aug 21st, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1. public class PositiuONegatiu {
  2.  
  3.   public static final int VALOR = 10;
  4.  
  5.   public static void main (String[] args) {
  6.  
  7.     if (VALOR > 0) {
  8.       System.out.println("Positiu.");
  9.     } else if (VALOR < 0) {
  10.       System.out.println("Negatiu.");
  11.     } else {
  12.       System.out.println("Zero.");
  13.     }
  14.   }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement