Computer Science, asked by mala75, 7 months ago

Write a program to enter a number. If the number is even,
display three succeeding even numbers. If the number is negative odd, display preceding odd numbers otherwise, display the message 'Number is neither a positive even nor a negative odd. ​

Answers

Answered by sankalpmadhavi28
1

Use if else if no is divisible by 2 then even number else odd

Similar questions