0
Can you help with me create a java program that converts an even number to odd number
Java program
4 Respuestas
+ 6
Yes sure, first your attempt please.
+ 3
Logic is that
if(number is %2==0)
number +=1;
0
int x = number%2==0?number+1:number;