lets say if a user enters 5 for the value of n so it means the program calculates the sum of numbers from 1 till 5. like 1 + 2 + 3 + 4 + 5 = 15. so the sum of the ...
An integer error will happen. At the start of the program k is an integer, and in the while loop 1/k will not produce a float. Need to make either the 1 or the k a ...
Send a note to Doug Wintemute, Kara Coleman Fields and our other editors. We read every email. By submitting this form, you agree to allow us to collect, store, and potentially publish your provided ...