#include <iostream> #include <stdlib> int main() { // Variable declarations. int product = 1; for( int i = 0; i <= 7; i++) { product *= 2 * i + 1; } cout << "Product is: " << product << endl; system("PAUSE"); return 0; }
Find Tons of C++ Programming examples, projects with code. Also find books solutions.
#include <iostream> #include <stdlib> int main() { // Variable declarations. int product = 1; for( int i = 0; i <= 7; i++) { product *= 2 * i + 1; } cout << "Product is: " << product << endl; system("PAUSE"); return 0; }