monkeyslut45

Кирилл Деменев

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