wap to check a number is even or not dynamically
Answers
Answered by
0
Answer:
this is very easy.
class number
{
public static void main(String args[])
{
n=5;
if(n%2==0)
{
System. out. println("Number is even. ");
}
else
{
System. out. println(" Number is odd. ");
}
}
}
Similar questions
Math,
1 month ago
Political Science,
1 month ago
Hindi,
1 month ago
Hindi,
3 months ago
Math,
9 months ago
French,
9 months ago
Computer Science,
9 months ago