Writes a c program to find the sum of all integers greter than 100 and less than 200that are divisible by 7?

1 answer

Answer

1291031

2026-08-14 15:26

+ Follow

int main()

{

int total = 0;

for(int i = 101; i < 200; i++)

{

if(i % 7 == 0)

total += i;

}

printf("total = %d\n", total);

return 0;

}

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.