answersLogoWhite

0


Best Answer

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;

}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

int num = 0;

int sum = 0;

int x = { ... some value ... }

int i;

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

if (i % x == 0) {

num ++;

sum += i;

}

}

printf ("Count: %d Sum: %d\n", num, sum);

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

/* average * count

min= 204

max= 396

average= (min+max)/2

count= (max-min)/6 + 1 */

int sum= (204+396)/2 * ((396-204)/6 + 1);

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Writes a c program to find the sum of all integers greter than 100 and less than 200that are divisible by 7?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Writes a c program to find the sum of all integers between 1 and n?

Write a program to find the number and sum of all integers from 100 to 300 that are divisible by 11


How do you determine the out put of java program?

"Output" refers to what the program produces - normally what it shows on screen, or perhaps writes to a file.


What are the release dates for The Jack Benny Program - 1950 Jack Writes Song 12-9?

The Jack Benny Program - 1950 Jack Writes Song 12-9 was released on: USA: 17 December 1961


Is there a program that you can sing into that writes out the notes can anyone help me does anyone know the name of the program?

Yes. I don't know the name of it, but there is software that does that.


Who is Debra Landau?

Debra Landau is the Assistant Chair of the Writing Program. She writes poems as well.


What is program threats in operating systems?

Often on user writes a program to be used by another user. In these cases misuses can occur and lead to unexpected behavior.


What is the difference between an embedded system and a desktop system?

in desktop system Intel ENGINEERS writes the operating system program(different ways in which a paticular program can be executed) and user (like software developers ) writes the application program n execute it on OSP.WHEREAS IN EMBEDDED SYSTEM both operating system program(OSP) and application progarm r WRITTEN BY ENGINEERS (TAHT IS USER CANT WRITE APPLICATION PROGRAM)


What is a method of developing software in which the programmer writes and implements a program in segments instead of waiting until the entire program is completed?

RAD (rapid application development)


What do you use to convert a GSI file to an NCD file?

The most reliable way is the use a program which reads and writes both formats


How can you tell if the program is a command-line program?

A command-line program generally reads from stdin and writes to stdout. A graphical-interface program generally interacts with the underlying windowing system. In MS Windows, a command-line (or console) program has a main function, whereas a graphical-interface program has a winmain function. Additionally, the primary includes will be stdio.h (or its variants) vs windows.h (or its variants).


What type of computer writes and modifies a computer program?

Personal Computer....AKA..... all computers write and mod computer programs that's how they run them.


What is mean by stream in file?

A stream is how a program reads to and writes from a file. When a program needs to create or edit a file, it opens up a "stream" to the file, "streams" the intended data to the file, and then saves it before closing the stream.