How would I go about creating a program that sums a series of fractions? The program will prompt the user to enter the number of terms in the summation.
For example if i wanted to sum 2/3+4/5 +6/7+8/9+... and the user said they want to use 3 terms in the summation for example.
n=input('Enter the number of terms in the summation: ');
Im thinking something along these lines, I know Id need to create separate vectors for the numerator and denominator and then sum them. If someone could please write me a sample code to explain how this would be done it would be greatly appreciated. Thanks.