plz send logic to write given program.

R

Robbie Hatley

pitamber kumar said:
plz send logic to write given program:
Write a program to find the number of and sum of all intergers
greater than 100 & less than 200 that are divisible by 7.


for (i = 101 ; i <= 199 ; ++i )
{
if (IsDivBy7(i))
{
++Count;
Sum += i;
}
}


That's the "logic". Now lets see your do *YOUR* part by
implimenting the function "IsDivBy7" and showing us
the code you've written.
 
N

Neil

pitamber said:
Write a program to find the number of and sum of all intergers greater
than 100 & less than 200 that are divisible by 7.
I think your instructor came up with these odd requirement to insure you
would have to write it your self.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top