zohaib.shirani@gmail.com wrote in news:1192705580.055095.159270
@e9g2000prf.googlegroups.com:
> On Oct 18, 4:03 pm, Nick Keighley <nick_keighley_nos...@hotmail.com>
> wrote:
>> On 18 Oct, 10:56, zohaib.shir...@gmail.com wrote:
>>
>> > i have got a quizz to [...]
>>
>> the idea of a "quiz" is for *you* to do the work
>>
>> > 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............ ?
>>
>> in NAPSIC (Nick's All Purpose Symbolic Instruction Code)
>>
>> DEFINE print_sum_evens (INTEGER x, y)
>> INTEGER sum <- 0;
>>
>> FOR ALL i IN RANGE (x, y)
>> IF is_even (i)
>> sum <- sum + i
>> END
>> END
>>
>> PRINT sum
>> END
>>
>> --
>> Nick Keighley
>
> Remember i am woking in C++ with complier VC..... Sorry 4 not telling
> u that
>
Nick is very well aware that you wanted C++ code. Which is exactly why
he didn't write his program in C++. He's not going to hand you the
solution on a silver platter (neither will anybody else here). The
point is for _you_ to do the work, not for one of us to do it for you.
You won't learn anything that way.