#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2010
    Posts
    1
    Rep Power
    0

    To write an algorithm to print even and numbers


    How do i write an algorithm to print odd numbers for 7 to 85
    An algorithm to print even numbers from 2 80
  2. #2
  3. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,066
    Rep Power
    9398
    This isn't even CS 101-level material.

    Use a for loop and some really, really basic arithmetic.

IMN logo majestic logo threadwatch logo seochat tools logo