Search:
Forum
Beginners
Find odd Integer....
Find odd Integer....
Nov 12, 2011 at 5:42am UTC
jahanzab niazi
(12)
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 UTC
shacktar
(1187)
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.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs