Write a For Loop to compute and display the product of the f

Write a For Loop to compute and display the product of the following (DO NOT write the entire program) 4 times 8 times 12 times ....times 28

Solution

Here is the Program to compute the total.

#include<iostream.h>

int main()
{
   int tot=1;
   for(int i=4;i<=28;i+=4)
       {
           tot=tot*i;
       }
    cout<<\"Product is \"<<tot<<endl;
  

}

 Write a For Loop to compute and display the product of the following (DO NOT write the entire program) 4 times 8 times 12 times ....times 28SolutionHere is the

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site