Computer Science, asked by sabitashr8, 3 months ago

write a program which display whether a input number is divisible by 2 or not​

Answers

Answered by BrainlyFlash
1

{\huge{\star{\underbrace{\tt{\red{Answer}}}}}}{\huge{\star}}

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