Advertisement
jorro_bs

Untitled

Feb 19th, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class DropsSong
  4. {
  5.   public static void main(String[] args)
  6.   {
  7.     Scanner scan = new Scanner(System.in);
  8.  
  9.     int number = Integer.parseInt(scan.nextLine());
  10.  
  11.     if (number % 3 == 0) {
  12.       System.out.println("“Пльок”");
  13.       if (number % 5 == 0) {
  14.         System.out.println("“Пляс”");
  15.         if (number % 7 == 0) {
  16.           System.out.println("“Пльос”");
  17.         }
  18.       }
  19.     }
  20.     else {
  21.       System.out.print(number);
  22.     }
  23.   }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement