Task 1 (For and While -loop) A) Write a program that uses a For-loop to sum the N first odd numbers greater than 30, i.e. the sum: S = 31 + 33 + 35 +. . . + (31 + 2 · (N − 1)), where N> 0 is a positive integer and the last […]
Task 1 (For and While -loop) A) Write a program that uses a For-loop to sum the N first odd numbers greater than 30, i.e. the sum: S = 31 + 33 + 35 +. . . + (31 + 2 · (N − 1)), where N> 0 is a positive integer and the last […]