Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class DropsSong
- {
- public static void main(String[] args)
- {
- Scanner scan = new Scanner(System.in);
- int number = Integer.parseInt(scan.nextLine());
- if (number % 3 == 0) {
- System.out.println("“Пльок”");
- if (number % 5 == 0) {
- System.out.println("“Пляс”");
- if (number % 7 == 0) {
- System.out.println("“Пльос”");
- }
- }
- }
- else {
- System.out.print(number);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement