Afficher un message
Vieux 18/10/2007, 11h54   #3
Erik Wikström
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Need i need a programmer

On 2007-10-18 11:56, zohaib.shirani@gmail.com wrote:
> i have got a quizz to write a programm that gives the sum of all even
> numbers between two variables x and y and then displays the sum.
> Include both x and y in the total sum.
>
>
> Any one here can me............ ?


Start by writing a program that reads in two integers, then figure out
how to get all numbers between those that you read in. Then figure out
how to sum up all those numbers. Then exclude those that are odd. For
more information read the FAQ, section 5.2 is particularly relevant:
http://www.parashift.com/c++-faq-lit...t.html#faq-5.2

--
Erik Wikström
  Réponse avec citation
 
Page generated in 0,05558 seconds with 9 queries