Write a program that uses a while loop to find the greatest value for N so that the sum (S) calculated by the program in 1a) does not exceed 1000.
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 number in the sum is (31 […]