Codename: Python

Tuesday, August 20, 2019

How many even nums in the range (2,20,3)

x = 0 
for i in range (2,20,3 ):
    if i%2==0:
        x+=1
print(x)
Posted by Ashikur Rahman at 5:03 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Ashikur Rahman
View my complete profile

Blog Archive

  • ▼  2019 (21)
    • ►  November (1)
    • ▼  August (20)
      • Basic Hexagon
      • Basic star
      • Rainbow Spiral
      • Spiral Helix Pattern
      • Square Spiral Basic
      • Colorful Spiral
      • Basic Spiral
      • Math quiz with randint
      • Math Quiz
      • Turtle Race with Winner Announcement
      • Turtle circle 2
      • Thor from Asgard
      • For loops in Turtle
      • OOP oldest dog
      • basic of declaring class
      • The class to create monsters
      • How many even nums in the range (2,20,3)
      • Flies with Turtle
      • Turtle Circle
      • Turtle Race
Awesome Inc. theme. Powered by Blogger.