View Single Post
Old May 2nd, 2008, 2:41 AM   #2
Freaky Chris
Hobbyist Programmer
 
Freaky Chris's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 169
Rep Power: 1 Freaky Chris is on a distinguished road
Send a message via MSN to Freaky Chris
Re: find out the average of odd numbers -do-while statement.

Looks like it would give the correct results, without testing i will say that you may have to change < to <= and possible change the point at which you increment X.

P.S Use [code] tags

Chris
__________________
Who said i couldn't program
sarcasm = raw_input('Type in a sarcastic remark: ')
print sarcasm
Freaky Chris is offline   Reply With Quote