- 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

17th Nov 2020, 9:13 PM
Prerna Keshkar
Prerna Keshkar - avatar
2 Answers
+ 4
First try it yourself then post your attempt if unsolved...
17th Nov 2020, 9:40 PM
Jayakrishna 🇼🇳
+ 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.
18th Nov 2020, 12:48 AM
Arsenic
Arsenic - avatar