Find the sum of 3 upto given natural numbers
Answers
Answered by
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
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
Math,
6 months ago
English,
6 months ago
Math,
6 months ago
Math,
1 year ago
Business Studies,
1 year ago
CBSE BOARD X,
1 year ago