Write a program to read a positive integer number n and generate the numbers in different ways as given below. If the entered number is 4 the output will be as follows.
(a) 2 4 6 8 10 … n (provided n is even).
(b) 1 3 5 7 9 … n (provided n is odd).
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here