Alrarapie

TigaLimaTujuh

Sep 30th, 2021
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. import java.io.*;
  2. import java.util.*;
  3.  
  4. public class Solution {
  5.     public static void main(String[] args) {
  6.         Scanner scanner = new Scanner(System.in);
  7.         int temp = scanner.nextInt();
  8.         if (temp%3==0) System.out.print("Tiga");
  9.         if (temp%5==0) System.out.print("Lima");
  10.         if (temp%7==0) System.out.print("Tujuh");
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment