#include<stdio.h>
int main()
{
int n,i = 1,nstart, nstop, ntimes, zNo;
printf(“Please enter a value for ntimes: “);
scanf(“%d”, &ntimes);
printf(“=====================”);
for(i = 1;i <= ntimes;i++){
printf(“nPlease enter a value for nstart: “);
scanf(“%d”,&nstart);
printf(“Please enter a value for nstop: “);
scanf(“%d”,&nstop);
n = nstart;
zNo = 1;
for(n = nstart;n <= nstop;n++)
{
zNo = zNo * n;
}
printf(“nstart = %d & nstop = %d ===> zNo (%d,%d) =%dn”,nstart,nstop,nstart,nstop,zNo);
printf(“————————————n”);
}
return 0;
}
Modify program above so that it computes and then displays onthe console computations of zNo(nstart,nstop) for user-specifiedvalues of nstart and nstop but now for an arbitrary number oftimes. Draw a flowchart .
Expert Answer
An answer will be send to you shortly. . . . .