Computer Science, asked by surendraeverest, 6 months ago

write a algorithm to find sum of first ten natural number.

Answers

Answered by kjjio
0

Answer

  • Write a C program to find the sum of first 10 natural numbers.
  • Pictorial Presentation:
  • Sample Solution:
  • C Code: #include <stdio.h> void main() { int j, sum = 0; printf("The first 10 natural number is :\n"); for (j = 1; j <= 10; j++) { sum = sum + j; printf("%d ",j); } printf("\nThe Sum is : %d\n", sum); } ...
  • mark as brainliest
Similar questions