Muhaiminur
2/12/2018 - 4:37 PM

Multiple_2_and_5

Write a java program that reads an integer, and prints the integer if it is a multiple of 2 and 5. For example, 10, 20, 30, 40, 50 …

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package BASICJAVA;

import java.util.Scanner;

/**
 *
 * @author ABIR
 */
public class Multiple_2_and_5 {
    public static void main(String[]args){
        Scanner abir =new Scanner(System.in);
        System.out.println("Enter your first number");
        int number=abir.nextInt();
        if(number%2==0 || number%5==0){
            System.out.println("Number is Multiple by 2 and 5");
        }
    }
}