Question: Create a new program named MyDate.c . Copy or type in something like the Hello, World program and make sure you can compile and run

Create a new program named MyDate.c. Copy or type in something like the
"Hello, World" program and make sure you can compile and run it.
b. Following the example in Section 2.5, write a program that creates variables
named day, month and year What type is each variable?
Assign values to those variables that represent todays date.
c. Print the value of each variable on a line by itself. This is an intermediate step
that is useful for checking that everything is working so far.
2.15 Exercises 25
d. Modify the program so that it prints the date in standard American form:
mm/dd/yyyy.
e. Modify the program again so that the total output is:
American format:
3/18/2009
European format:
18.3.2009
T

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!