Define a macro named IS_LEAP_YEAR(year) that determines whether year is a leap year or not. Use it in a program that accepts the year from the keyboard and outputs an appropriate message using a...


Define a macro named IS_LEAP_YEAR(year) that determines whether year is a leap year or not.


Use it in a program that accepts the year from the keyboard and outputs an appropriate


message using a switch statement.


Write a program containing the DISPLAY_VAR macro which displays, say, area3 = 20 when


invoked as DISPLAY_VAR(area, 3). Accept three values from the keyboard into the variables


area1, area2 and area3 and use the macro to display their values.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here