Question: double down ( int x [ ] , int cap, int &gap ) { double ans = 0 . 0 ; for ( int i
double downint x int cap, int &gap
double ans ;
for int i ; i cap; i gap
ans xi;
gap ;
return ans ;
int main
int x;
int a b ;
cout x endl; line a
cout downx a b endl; line b
cout downx a b endl; line c
cout downx x xx endl; line d
cout x endl; line e
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
