Computer Science, asked by susmitha1408, 7 months ago

Write a C function that

calculates the sum of integers

between 9 and 300 inclusive

which are divisible by 7 but not

divisible by 63.

Expected output: sum of integers

between 9 and 300 that are divisible

by 7 but not by 63 is 5684.​

Answers

Answered by myjerry19120
13

Answer:

Int sum = 0;

For(int i=9; i<=300 ;i++)

{

If( i % 7 == 0 & & i % 63 ! = 0)

{Sum = sum + i;}

}

Printf( " sum of integers between 9 and 300 that are divisible by 7 but not by 63 is %d ", sum) ;

Explanation:

The above program will give you the desired output

Answered by keyboardavro
3

Answer:

mrk me brainliest plzazzzzz

Explanation:

Int sum = 0;

For(int i=9; i<=300 ;i++)

{

If( i % 7 == 0 & & i % 63 ! = 0)

{Sum = sum + i;}

}

Printf( " sum of integers between 9 and 300 that are divisible by 7 but not by 63 is %d ", sum) ;

Similar questions