Write a program in C++ to find the sum of the series using the inline function.

Write a program in C++ to find the sum of the series using the inline function.

sum of the series in C++

Output

sum of the series in C++