You've spent more time on daniweb than hitting your books. Not a bad thing to do, but you need to do your own work now.
Clue: what type of numbers does $i % 2 == 1 give you??
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
Give the man a cigar! Now work out the relationship to the output or series. Oops almost gave it away.
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
X = 2 rite,
Then howcome the answer to the code is:
1 x 3, 2 x6, 3 x 12, 4 x16, 5 x 25, 6 x30
x++(shouldn't it be 3, 5, 7, 9, 11, 13)
I am confused...
Mais non, mon cheri.You always admire what you really don't understand
It would be wrong of me to arrest your admiration.
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
Paid รข bod yn wirion, gwranda, rwyt wedi derbyn sawl darn o god yn rhad ac am ddim, cer i wneud gwaith dy hun.
In a word, no.
I think your semester average has been bumped enough already. You get the grades you deserve at the end.
False dawns and dead ends are the making of men. What feeble excuse of a man shall you turn out to be if you continue to complete a crossword by first checking the answers?
Go forth and pound thy books.
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080