The sum of the first 57 natural numbers is 1,625.
Chat with our AI personalities
The sum of the first 10 natural numbers is 51.
The sum of the first 10 natural numbers is 51, with an average of 5.1
Here it is: 500,001
#include<stdio.h> int main() { int limit,num,sum=0,i; printf("enter a number"); scanf("%d",&num); for(i=0;i<=num;i++) sum+=i; printf("%d",sum); return 0; }
To get the product, multiply the first number by the second. To get the sum, add the second number to the first. To get the difference, subtract the smaller number from the larger.