Math, asked by Chandumuramalla7947, 1 year ago

Find the sum of 3 upto given natural numbers

Answers

Answered by ItsCuteBoy
0

Answer:

The program output is also shown below. * C program to find the sum of 'N' natural numbers. int i, num, sum = 0; printf("Enter an integer number \n"); scanf ("%d", &num); for (i = 1; i <= num; i++) sum = sum + i; printf ("Sum of first %d natural numbers = %d\n", num, sum);

Answered by Anonymous
0

Answer:

Step-by-step explanation:

The program output is also shown below. * C program to find the sum of 'N' natural numbers. int i, num, sum = 0; printf("Enter an integer number \n"); scanf ("%d", &num); for (i = 1; i <= num; i++) sum = sum + i; printf ("Sum of first %d natural numbers = %d\n", num, sum)

Høpe it's help you❤

Similar questions