6. Debugger

Exercises

  1. Run this program with a debugger and execute it statement by statement. Try to figure out what the program does:
    #include <iostream>
    using namespace std;
    
    int main() 
    { 
        double product = 1;    
        
        for (double i=3; i<=6; i++)
            product = product*i;      
            
        cout << "The product equals " << product << "." << endl;
    }