Write a java program that reads an integer, and prints the integer if it is a multiple of either 2 or 5. For example, 2, 4, 5, 6, 8, 10, 12, 14, 15, 16, 18, 20, 22 …
/*
* 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_or_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("yes and rsult is = "+number);
}
}
}