Venciity

[Java] dividend5and7

May 2nd, 2014
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3.  
  4. public class dividend5and7 {
  5.  
  6.     public static void main(String[] args) {
  7.         Scanner input = new Scanner(System.in);
  8.         int number = input.nextInt();
  9.        
  10.         if (number % 5 == 0 && number % 7 == 0)
  11.         {
  12.             System.out.println("Yes");
  13.         }
  14.         else {
  15.             System.out.println("No");
  16.         }
  17.     }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment