subject

4) days in a month write a c program that asks the user to enter the month (letting the user enter an integer in the range of 1 through 12) and the year. the program should then display the number of days in that month. use the following criteria to identify leap years: 1. determine whether the year is divisible by 100. if it is, then it is a leap year if and only if it is divisible by 400. for example, 2000 is a leap year but 2100 is not. 2. if the year is not divisible by 100, then it is a leap year if and if only it is divisible by 4. for example, 2008 is a leap year but 2009 is not. remember that january, march, may, july, august, october and december have 31 days. april, june, september, november have 30 days. use ints for the month and year.

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:00, hannahliebl2000
What is the largest decimal number that can be represented by a binary number with 4 place values? (remember, each place in a binary number has a value of a power of 2, starting in the ones place with 20.)
Answers: 3
image
Computers and Technology, 22.06.2019 05:10, kellysimkin6196
Read the code below. what will the computer print if the input for year_variable is 1700? if year_variable == 1776: print("your answer is correct. the declaration of independence was signed in “year_variable”.") elif year_variable < 1776: compute_variable = 1776 - year_variable. print("add “compute_variable“ years to your answer for the correct answer.") elif year_variable > 1776: compute_variable = year_variable - 1776 print("subtract “compute_variable” years from your answer for the correct answer.")
Answers: 1
image
Computers and Technology, 22.06.2019 10:00, fnaflover8505
Businesses allocate resources for their best and most productive uses. the more a resource, the more costly it will be. a manufacturer that requires scarce and costly resources is likely to charge for its products.
Answers: 2
image
Computers and Technology, 23.06.2019 09:00, opgbadwolf5
What provides an array of buttons for quick access to commonly used commands and tools
Answers: 1
You know the right answer?
4) days in a month write a c program that asks the user to enter the month (letting the user enter a...

Questions in other subjects:

Konu
Spanish, 20.02.2021 09:10
Konu
Mathematics, 20.02.2021 09:10