A C++ program that calculates two different series: Series 1 and Series 2.
This C++ program allows you to calculate two distinct mathematical series:
- Series 1: 1/(0+1) + 1/(1+2) + ... + 1/((n-1)+n)
- Series 2: (nxn) + ((n-1)x(n-1)) + ... + (2x2) + (1x1)
The program provides a user-friendly menu to select which series to calculate, input the value of 'n', and displays the result. Additionally, it offers the option to exit the program gracefully.
- User-friendly menu for selecting series and inputting values.
- Recursive functions for calculating both Series 1 and Series 2.
- Optional display of intermediate steps in the calculation.
- Graceful exit option.
- Choose the series you want to calculate from the menu.
- Input the value of 'n' for the series.
- Optionally, see the intermediate steps in the calculation.
- Get the result.
- Repeat or exit as needed.
Feel free to clone this repository and use the program for your mathematical calculations.