- 1
Write a program with the function chkOdd() that takes one argument (a positive integer) and report if the argument is odd or not
Please 🙏 mention it in function form
2 Antworten
+ 4
First try it yourself then post your attempt if unsolved...
+ 3
1) an odd number is a number which is not divisible by 2
2) modulo operator (%) divides the 2 numbers and returns it's remainder
These are the only required information you need in order to solve it. Now go ahead and show us what you can do using these.