Question: Problem 1 ( 2 0 points ) : Write an interactive C program that ask a user to enter an integer number that is greater
Problem points: Write an interactive C program that
ask a user to enter an integer number that is greater than or equal to Your program
will continue asking until a user enters a zero or a positive integer.
find, and print with digits after a decimal point, the result of
cdots
ask a user whether heshe wants to continue for No
You must write and use, in your code, the following function: double myfuncint ;
The function is used to calculate and return the result of the series given above.
For example, when the result is
Sample code execution: bold text indicates information entered by a user
Enter an integer :
Enter an integer :
Enter an integer :
Enter an integer :
Enter an integer : for N sum of series is
Do you want to continue n for No y
Enter an integer :
for N sum of series is
Do you want to continue n for No s
Enter an integer :
Enter an integer :
for N sum of series is
Do you want to continue n for No a
Enter an integer :
for N sum of series is
Do you want to continue n for No q
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
