Make a program that requests input of a number and displays the output as "odd" or "even" depending on the number entered? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Make a program that requests input of a number and displays the output as "odd" or "even" depending on the number entered?

Odd or even

24th Dec 2019, 6:02 AM
Ikhda Aini
3 Answers
+ 5
Hello! Do you have your own attempt at this problem? Asking others to write the code for you isn't really the way to go when asking for help, so try and solve it yourself and sharing your attempt
24th Dec 2019, 6:06 AM
Faisal
Faisal - avatar
+ 1
Do a search for other codes which have done this in the language of your choice. Have a look at a few of them and you will see a common theme. Then create your own code - don't copy. Good luck
24th Dec 2019, 8:39 AM
Rik Wittkopp
Rik Wittkopp - avatar
0
I don't know how. This is my first time so I need an example. That's why I ask.
24th Dec 2019, 6:13 AM
Ikhda Aini