Simple bluej program using if-else condition
Answers
Answered by
0
Answer:
class Test
(
void calc(int num)
(
if( num % 2==0)
(
System.out.println(num + " is even ");
)
else
(
System.out.println(num + " is odd ");
)
)
)
Similar questions