8.In the following problem, an integer given as input. In the output, the number of lines is equal
to this number. In every odd numbered line (e.g. 1st, 3rd, 5th and so on) you have to print the
odd numbers from 1 to that line number. On the other hand, in the even numbered lines, print all
the even numbers from 2 to that line number.
Answers
Answered by
1
Answer:
Explanation:1st 3rd 5th
Similar questions