Generate odd numbers. Write a program that generates all odd numbers from 1 to n. Set n in the beginning of the program and use a while loop to compute the numbers. (Make sure that if n is an even number, the largest generated odd number is n-1.) Name of program file: odd.py.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here