Print sum of first 100 integers. (With data validation)
1
Expert's answer
2022-03-14T02:37:30-0400
#include<stdio.h>intmain(){
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);
return0;
}
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