Description: This program is in C + + and it calculates the sum of the geometric progression of n members: 1/3 + 1/9 + 1/27 + ...
The number of members of the geometric progression n is entered via the keyboard, while the program should be sufficient number of members n is 0 or a negative number, so if you enter a number such program should print an error message and stop. The result can be accurate to six decimal places.
To Search:
File list (Check if you may need any files):
ex2\Zadaca2.cpp
...\Zadaca2.exe
ex2