Print sum of first 100 integers. (With data validation)
1
Expert's answer
2022-03-14T02:37:30-0400
#include <stdio.h>
int main()
{
int sum=0,i;
for(i=1;i<=100;i++){
sum+=i;
}
printf("The sum of first 100 integers is %d\n\n",sum);
scanf("%d", &sum);
return 0;
}
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment