Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Solution {
- public static void main(String[] args) {
- compare(3);
- compare(5);
- compare(11);
- }
- public static void compare(int a) {
- //напишите тут ваш код
- if (a < 5) {
- System.out.println("Число меньше 5");
- }
- else if (a == 5) {
- System.out.println("Число равно 5");
- }
- else if (a > 5) {
- System.out.println("Число больше 5");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement