Advertisement
Yaroslavovich

Untitled

Oct 28th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. public class Main {
  2.     public static void main(String[] args) {
  3.         int a;
  4.         Scanner in = new Scanner(System.in);
  5.         a = in.nextInt();
  6.         if (a<0) {
  7.             System.out.println("отрицательное");
  8.  
  9.         } else if (a>0) {
  10.             System.out.println("положительое");
  11.         }
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement