Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PositiuONegatiu {
- public static final int VALOR = 10;
- public static void main (String[] args) {
- if (VALOR > 0) {
- System.out.println("Positiu.");
- } else if (VALOR < 0) {
- System.out.println("Negatiu.");
- } else {
- System.out.println("Zero.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement