Write a menu-driven program to print the following patterns, where number of rows
for the pattern should be the user input:
a. Press 1 to print the following pattern:
5
5 8
5 8 13
5 8 13 20
5 8 13 20 29
b. Press 2 to print the following pattern:
2
2 9
2 9 28
2 9 28 65
2 9 28 65 126
c. Print the following series:
1 2 2 4 8 32
Select the correct answer from above options