Question: c# programming a answer as quick ass possible would be appreciated. svenska engelska +7 [1] Suppose you have a program where there is a variable

 c# programming a answer as quick ass possible would be appreciated.c# programming a answer as quick ass possible would be appreciated.

svenska engelska +7 [1] Suppose you have a program where there is a variable float max; which contains a positive value. You should now write two loops as below. (In both cases, the code must work regardless which value you have assigned to max, as long as it is greater than zero.) a) Write a for-loop that in each round halves the value of max. Your loop should end either when run 1000 times, or when the value of max is less than 0.001 (depending on which happens first). In your solution, you should show the use of break to achieve this. b) Write a do-loop to calculate the sum of 0+ 1 + 2 + ... + n where the value n max. Submit your answers in file Fortstt verstta

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!