write a program which display whether a input number is divisible by 2 or not
Answers
Answered by
1
Class BrainlyFlash
{
public static void main ( int n)
{
if(n%2= = 0)
System.out.print(" Number is divisible by 2 ");
else
System.out.print(" Number is not divisible by 2 ");
}
}
[Note] - The given program is in Java language.
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
@BrainlyFlash
BrainlyFlash:
Please mark me as brainliest!!
Similar questions