Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.util.*;
- public class Solution {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int temp = scanner.nextInt();
- if (temp%3==0) System.out.print("Tiga");
- if (temp%5==0) System.out.print("Lima");
- if (temp%7==0) System.out.print("Tujuh");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment