the first printf should give me a straight list of all the "i" numbersCode:#include <stdio.h>
int main() {
int sum=0;
int i;
for ( i=1;i<=1000;i++){
if ((i%3==0)||(i%5==0)){
sum=sum+i;
printf("%d\n",sum); //the first printf
}
}
printf("%d\n",sum); //this line is not being executed
return 0;
}
and the last printf which supposed to give me the total sum
doesnt even executes?