given code (using language C):
#include
#include
int main()
{
double a,sum;
int j,N;
printf(“nEnter an”);
scanf(“%lf”,&a);
printf(“Enter Nn”);
scanf(“%i”,&N);
printf(” j sum “);
sum=0.;
for (j=0; j
{
sum=sum+pow(a,j);
printf(“n %i %12.6lf “,j,sum);
}
return 0;
}
Question: Run the geometric series code above for a=0.3, N=10and for a=0.8, N=10. Write a paragraph which derives the correctanswer, and which gives the outputs of your code for both cases.Does your code give the right answer? If not, explain what’s goingwrong?
*********Please make sure you answer all questions to thisproblem, please be specific(Step by step) and please write clearenough to be able to read it. thank you! The language used isC.
I provided all your the info you need in the Question section…thats
PayPal Gateway not configured
PayPal Gateway not configured