By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,470 Members | 994 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,470 IT Pros & Developers. It's quick & easy.

To program a function, has an integer lim (the number of repetitions of a certain seq

P: 1
To program a function, has an integer lim (the number of repetitions of a certain sequence of operations) as an input parameter and performs the following:

1) in an infinite loop while (1) considers the sum of the quantities n / (n + 5.0), where the initial value is n == 0;

2) increment the value of n at each iteration of the loop;

3) exits the loop with the goto operator to some label with the loop when n exceeds the value of lim;

4) returns the sum found in the loop (variable type - float).
3 Weeks Ago #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 202
You're going to need to write some code for this.
3 Weeks Ago #2

Post your reply

Sign in to post your reply or Sign up for a free account.