Write a c program prints the days of a month


Discuss the below:

Q: Write a c program that prints the days of a month in "calender format." Th program should prompt the user for the day of the week that begins the month and the total numbers of days in the month."(days of the week should be entered as int from 0 to 6.(0 = Sunday 1 Monday 2 Tues. ... to Sat.))below is a sample output

Enter a day of the week (0 - 7) and number of days: 3 28
s m t w t f s
1 2 3 4
5 6 7 8 9 10 11
12 ........

 

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a c program prints the days of a month
Reference No:- TGS01936411

Now Priced at $25 (50% Discount)

Recommended (99%)

Rated (4.3/5)