Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using std::cout;
- using std::endl;
- using std::cin;
- int main()
- {
- int product = 1;
- cout << " the odd intergers from 1 to 13 are: " << endl << endl;
- for (int product = 1; product <= 13; product = product + 2)
- cout << product << endl << endl;
- cout << "The product of the odd integers from 1 through 13 is " << product << endl;
- return 0;
- } //end of main function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement