answersLogoWhite

0

#define leap year

void main()

{

enumeratedmonth{jan=1,

feb,

mar,

april,

may,

june,

july,

aug,

sept,

oct,

nov,

dec}

enumeratesd month month;

int day,days,a month

clrscr()

printf("enter no.of month");

scanf("%d",& a month);

switch(a month)

{

case jan:

case mar:

case may:

case aug:

case oct:

case dec:

printf(" no. of day=31"0;

days=31;

break;

case april:

case june:

case sept:

case nov:

days=30;

break;

default;

printf("wrong no.");

day=0;

}

if (day!=0)

printf("no. of days=%d/n",days);

if (a month==feb)

printf("29 if its a leap year");

getch();

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

How do you write a horoscope program on python?

Hi gys, are you looking to write a program to know the sign depends on the birth date or horoscope on python? write down following codes on python, those will make a nice program. #This program will get the horoscope sign. def getSign(): name = raw_input ("Enter Your Name: ") month = raw_input("Enter Birth Month: ") day = int(raw_input("Enter Birth Day of Month: ")) if month "y": main() letter = raw_input("Go again? (y/n): ")


How do you write a program to accept a month number and display a maximum number of days?

DisplayMonth( int month ) //base 0 { switch( month ) { case 0: printf("January\n"); break; case 1: printf("February\n"); break; case 2: printf("March\n"); break; .... and so on } } enjoy


How long does a programmer take to make a professional Program?

Depends on how much dedication and time you are giving If you give 100% 2 month


How do you convert given number of days into month in java?

(Assume that each month is of 30 days) Example : Input - 69 Output - 69 days = 2 Month and 9 days */ classDayMonthDemo{ public static void main(String args[]){ int num = Integer.parseInt(args[0]); intdays = num%30; int month = num/30; System.out.println(num+" days = "+month+" Month and "+days+" days"); } }


What is a kwmonth?

A kWmonth, or kilowatt-month, is a unit of energy measurement that represents the consumption of one kilowatt of power over the span of one month. It is used to quantify electrical energy usage, often in the context of utility billing. To calculate kWmonths, you multiply the power in kilowatts by the number of hours in a month (typically about 730 hours). This unit helps consumers understand their energy consumption in relation to their electricity costs.

Related Questions

Write a C program called MonthDays to find the number of days in a given month Test your code with different input values to demonstrate that your function is robust?

Write a C program called MonthDays to find the number of days in a given month Test your code with different input values to demonstrate that your function is robust?


How do you write a horoscope program on python?

Hi gys, are you looking to write a program to know the sign depends on the birth date or horoscope on python? write down following codes on python, those will make a nice program. #This program will get the horoscope sign. def getSign(): name = raw_input ("Enter Your Name: ") month = raw_input("Enter Birth Month: ") day = int(raw_input("Enter Birth Day of Month: ")) if month "y": main() letter = raw_input("Go again? (y/n): ")


How do you create a program that will ask the user for a month and number of days in it?

i Have no Idea please someone tell me


Write the ordindal number that repesent the month of November when the months of the year are listed in order?

11


Write a JSP program which displays webpage containing arrival of new items within a particular month in the different branches of a retail company?

vbcvbvbvcbc vbcvbvbvcbc


How do you write 17th of the month in words?

Seventeenth of the month.


Hw do you write metric notation year month day?

how to write date month and year in metric notation


What is the 6 month emt program?

history


Could you please provide me an script for nutrition month program?

a script about nutrition month


Second sem cobol question paper previous year?

Each question carries 10 marks. Explain the environment Division with example. Explain the Data Division with an example. Explain the various types of Move statements. Write a COBOL program to find a given integer is odd or even. An input file consists of the following Employee name, Employee number, Basic pay. Write a COBOL program to create an Indexed file which consists of Employee-name, Employee-number, Basic-pay and DA (DA = 25% of Basic-pay) Assume that an organisation has 20 departments. Each department has 5 stores. You are provided with total monthly sales of each stores for the month December 2000. Write a COBOL program to read the data, to write the sales report department wise and also write the total sales of the organisation.


How should the date appear on business documents?

You write out the month, put in the number of the day, and then the year. Example: December 5, 2005 It is generally better to write the month in words as countries use different formats for the day and month. Some place the day first, as in 5/12/2005 others the month first, 12/5/2005, this could cause confusion.


Why do Americans write month before date?

Americans write month before date because their date format is arranged in this way