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
Get step-by-step solutions from verified subject matter experts
