Answer to Question #3155 in Python for mukundareddy

Question #3155
Program to print the sum of the n even numbers in python.
1
Expert's answer
2011-06-20T12:27:47-0400
#!/usr/bin/python
n=5
i=2
while i<=2*n:
print i
i=i+2
######################################

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS