Computer Science, asked by ItzCybernite, 5 days ago

Write a program to calculate the sum of first 10 natural numbers and display the result

Answers

Answered by randomkpoparmy
0

Answer:

I can help you but you need to tell the programming language. Python, Java, JavaScript, HTML, etc.

Answered by bandivijayabharathi
0

Answer:

Solution is 55

Explanation:

#include<studio.h>

int main()

{ int i , sum=0;

printf("first 10 natural numbers");

for(i=1, i <=10, i++)

{

sum = sum + i

printf("%d", i);

}

printf(" sum of first 10 natural numbers is : %d\n", sum);

}

Similar questions