Find odd Integer....

Nov 12, 2011 at 5:42am
write a program to calculate product of odd integers from 1-15?
How could i solve this?Any one has any hint?How to solve it with FOR LOOP?
Nov 12, 2011 at 6:09am
You could have the for loop increment from 1 to 15. For each index, you could test if it's odd and, if so, display it. The modulus operator, which is the % sign can be used to do the test.
Topic archived. No new replies allowed.