Question 2
(a) Write an application that prompts you to enter the number of rows and outputs an isosceles triangle of asterisks as shown below:
(b) Design an algorithm that will prompt for and receive your age in years and
months and calculate and display your age in months. If the calculated months
figure is more than 500, three asterisks should also appear beside the months
figure. Your program is to continue processing until a sentinel of 9999 is entered. (15 marks)