Advertisement
Guest User

testest

a guest
Oct 24th, 2008
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using std::cout;
  4. using std::endl;
  5. using std::cin;
  6.  
  7. int main()
  8. {
  9. int product = 1;
  10.  
  11. cout << " the odd intergers from 1 to 13 are: " << endl << endl;
  12.  
  13. for (int product = 1; product <= 13; product = product + 2)
  14. cout << product << endl << endl;
  15.  
  16.  
  17.  
  18. cout << "The product of the odd integers from 1 through 13 is " << product << endl;
  19.  
  20.  
  21. return 0;
  22. } //end of main function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement