Question: This is in rogramming language C Write a program that takes as input four dates in the format MM:dd:yyyy and prints them out in a
This is in rogramming language C


Write a program that takes as input four dates in the format MM:dd:yyyy and prints them out in a tabular format, as shown below (items underlined are to be entered by the user): The year, month and day columns should be separated by tabs (\t) (this also refers to the words Year, Month and Day from the header of the table). The year column should occupy 4 spaces and the values should be right justified. The month column should occupy 2 spaces and the values should be right justified. The day column should occupy 2 spaces and the values should be left justified. Save your program in a file called date.c. Modify your previous program so that if the value of the year is less than 4 digits, add 0 in front of the year to make the year has 4 digits. If the values of month and day are less than 10 (meaning they have just one digit), the values of month/day will always have two digits displayed (as shown below): Save your program in a file called date c.c
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
