Believe it or not Draw Your Own Mind..........
Home
Software
Easy Notes
Ebooks
Poetry
Contact Us
Python 2.7.3
Microsoft Visual C++
Avast Antivirus with keys
PC File Recovery
Hotspot Shield
USB Disk Security
Corel Draw X6
Adobe Photoshop CS6
Cinema4d r13+keys
C++ Codes
Python Codes
C++ Videos
C++ Slideshows
Intro to Computing Notes
Intro to Computing Slides
1st Semester Books
Hadith Books
Ayoubi Ki Yalgharain
Tuesday, 6 November 2012
Sum of odd numbers via for loop
The sum of all odd numbers from 1 to 50. Using for loop.
sum=0
for i in range(1,50):
if i%2==1:
sum=sum+i
print sum
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment