Write a program to calculate the sum of first 10 natural numbers and display the result
Answers
Answered by
0
Answer:
I can help you but you need to tell the programming language. Python, Java, JavaScript, HTML, etc.
Answered by
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
Math,
2 days ago
English,
2 days ago
Social Sciences,
5 days ago
Physics,
5 days ago
Environmental Sciences,
9 months ago
Social Sciences,
9 months ago
English,
9 months ago