You are on page 1of 1

Algorithm: Step 1: Start the program.

Step 2: Create the class and declare the variable and functions of the class. Step 3: In main function, objects are created and the respective functions are called for the Function. Step 4: Get n value and calculation function is repeat by using for loop. Step 5: Stop the program.

You might also like