Defined functions

Hello everyone, I have problems in doing this coding. any helps?

Using do-while loop, write a program that inputs a series of integers and passes
them one at a time to function even which checks whether an integer is even. The
function should take an integer argument and return 0 if the integer is even and 1
otherwise. Use if-else control structure in the function definition.
If the integer is even, the program will calculate and print the value of that even
integer to the power of 3. Convert the results to floating point value.
I have a suggestion. Try it, and then fix your program, and repeat until it works.

It's the normal (and pretty much only) way to program.
Topic archived. No new replies allowed.