Answer to Question #3155 in Python for mukundareddy
Program to print the sum of the n even numbers in python.
1
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!
Learn more about our help with Assignments:
Python
Comments
Leave a comment