0
Sum of multiples of 8
8×1 to 8×10 using c language
4 Respuestas
+ 4
Priyansh Bansal
Little bit changes, here is the corrected form:
https://code.sololearn.com/cT3qTvJD2Uu5/?ref=app
+ 3
Can you share your attempt?
+ 1
int main() {
int i=0,sum=0;
for(i;i<=80;i+=8){
sum+=i;
}
printf("The sum of mutiples of 8 is %d",sum);
return 0;
}
+ 1
Ok thanks