SHARE
TWEET

1

a guest Feb 1st, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Solution {
  2.     public static void main(String[] args) {
  3.         compare(3);
  4.         compare(5);
  5.         compare(11);
  6.     }
  7.  
  8.     public static void compare(int a) {
  9.         //напишите тут ваш код
  10.     if (a < 5)   {
  11.         System.out.println("Число меньше 5");
  12.     }
  13.    
  14.     else if (a == 5) {
  15.         System.out.println("Число равно 5");
  16.     }
  17.    
  18.     else if (a > 5) {
  19.         System.out.println("Число больше 5");
  20.     }
  21.    
  22.     }
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top