1.( Finding the number of days in a month) Write a program that prompts the user to enter the month and year, and displays the number of days in the month. For example, if the user entered month 2 and year 2000, the program should display that February 2000 has 29 days. If the user entered month 3 and year 2005, the program should display that March 2005 has 31 days.
2.Write a nested for loop that prints the following output in left triangle:
1
2 1
4 2 1
8 4 2 1
16 8 4 2 1
32 16 8 4 2 1