1. Declare a structure date with year, month and day (all integer) as its attributes. Take five dates as input. Print the stored data as output. Print the oldest date. Print the dates that fall on a...


only C Program



1. Declare a structure date with year, month and day (all integer) as its attributes. Take five

dates as input.

o Print the stored data as output.

o Print the oldest date.

o Print the dates that fall on a leap year.

o Take a month as input. Print the dates that fall on that month.
2. Declare a structure distance with feet and inch as its attribute. Take two distances in feet

inch as input. Calculate their sum and print as output.


1. Declare a structure date with year, month and day (all integer) as its attributes. Take five<br>dates as input.<br>Print the stored data as output.<br>Print the oldest date.<br>Print the dates that fall on a leap year.<br>Take a month as input. Print the dates that fall on that month.<br>2.<br>eclare a structure distance with feet and inch as<br>attribute. Tak<br>two distances<br>feet<br>inch as input. Calculate their sum and print as output.<br>

Extracted text: 1. Declare a structure date with year, month and day (all integer) as its attributes. Take five dates as input. Print the stored data as output. Print the oldest date. Print the dates that fall on a leap year. Take a month as input. Print the dates that fall on that month. 2. eclare a structure distance with feet and inch as attribute. Tak two distances feet inch as input. Calculate their sum and print as output.

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here