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 XXXXXXXXXX … n (provided n...


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).

Nov 13, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here