6. Write an object-oriented program in C++ to generate the following series of numbers using constructor, destructor and inline member functions. (i) (ii) 1 1 2 1 1 ...




6. Write an object-oriented program in C++ to generate the following series of numbers using constructor, destructor and inline member functions.


(i) (ii)


1 1











































































































































2 1
























1



2















3 2



1





















1



2



3









4 3



2



1


















1



2



3



4






5 4



3



2



1















1



2



3



4



5



6 5



4



3



2



1












1



2



3



4



5



6









7 6



5



4



3



2



1









1



2



3



4



5



6



7






8 7



6



5



4



3



2



1






1



2



3



4



5



6



7



8



9 8



7



6



5



4



3



2



1



1



2



3



4



5



6



7



8 9



(iii) (iv)



















































































































































































9



8



7



6



5



4



3



2



1



1



2



3



4



5



6



7



8 9



8



7



6



5



4



3



2



1






1



2



3



4



5



6



7



8



7



6



5



4



3



2



1









1



2



3



4



5



6



7






6



5



4



3



2



1












1



2



3



4



5



6









5



4



3



2



1















1



2



3



4



5












4



3



2



1


















1



2



3



4















3



2



1





















1



2



3


















2



1
























1



2





















1



























1


































May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here