Guys will you pls help me make a calendar turbo c program?
the program prompts the user
to enter a month in integer form from 1-12 only (1-12 refers to month)
and also prompts the user to enter year from 1980 - 2010 only
if you enter an invalid integer it will prompt
the user to enter again the valid one.

if the user enter a valid int then it will display the calendar

it will look like this:
------------------------------------------------------
enter a month from 1 - 12 : 1
enter a yr from 1980 - 2010 : 2008

1 january 2008

sun mon tue wed thu fri sat
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

-------------------------------------------------------

the output must be like a real calendar pls help! im just a newbie to this things! pls help me!

Guys will you pls help me make a calendar turbo c program?
the program prompts the user
to enter a month in integer form from 1-12 only (1-12 refers to month)
and also prompts the user to enter year from 1980 - 2010 only
if you enter an invalid integer it will prompt
the user to enter again the valid one.

if the user enter a valid int then it will display the calendar

it will look like this:

                        ------------------------------------------------------
                             enter a month from 1 - 12   :    1
                             enter a yr from 1980 - 2010 : 2008

                                   1             january        2008

                                  sun mon tue wed thu fri sat
                                                   1     2     3     4    5
                                     6     7     8      9    10   11  12
                                    13   14    15    16   17   18  19
                                    20   21    22    23   24   25  26
                                    27   28    29    30   31

                       -------------------------------------------------------

the output must be like a real calendar pls help! im just a newbie to this things! pls help me!

You may either use the switch statement...the case,brake, and default..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.