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
English,
6 months ago
Chemistry,
6 months ago
Science,
6 months ago
Math,
11 months ago
Business Studies,
11 months ago
CBSE BOARD X,
1 year ago