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. 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
