Computer Science, asked by Magma30, 14 hours ago

Write
a program in JAVA to accept a number and check whether the given number is MitZ
number or not. A MitZ number is a number which is divisible by 2 and gives
quotient 5. e.g. 10 is MitZ numbers.

Answers

Answered by rohankumarVIID
1

Answer:

plz mark me as brainliest

Explanation:

import java.util.*;

public class Exercise49 {

public static void main(String[] args){

Scanner in = new Scanner(System.in);

System.out.print("Input a number: ");

int n = in.nextInt();

if (n % 2 == 0) {

System.out.println(1);

}

else {

System.out.println(0);

}

}

}

Similar questions