Problem
1. Write a program that uses an if-else construct to check for a leap year.
2. Write a calculator program that accepts an expression in the form num1 operator num2. The program should use a switch construct to check operator and print the result.
3. Use a do-while loop to divide a number repeatedly by 2 and print the remainder at every iteration.