Question: Write a program in c that Find the sum of the first N natural numbers where N (> 1) is a natural number given by

Write a program in c that Find the sum of the first N natural numbers where N (> 1) is a natural number given by the user. Also, find and print the sum of squares of the first N natural numbers by calling a functionsum_square that takes N as an argument and returns the sum of squares of the first N naturals. Then find and print the sum of cubes of the first N natural numbers by calling a functionsum_cube that takes N as an argument and returns the sum of cubes of the first N naturals.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!