Computer Science, asked by saritarai9934335413, 2 months ago

Simple bluej program using if-else condition

Answers

Answered by krishsoren
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