Write an algorithm to calculate: PI = 4 – 4/3 + 4/5 - 4/7 + 4/9 – 4/11 + 4/13
Write an algorithm that uses a for loop statement to sum a sequence of integers. Assume that the first integer read specifies the number of values remaining to be entered. Your program should read only one value per input statement. A typical input sequence might be 5 100 200 300 400 500
Bookmarks