Lets write a C program to calculate sum of all natural numbers from 1 to N, using for loop. Related…