Computers and Technology
Computers and Technology, 18.10.2019 04:30, pcartei

Write a program that inputs an integer denoting a month (1 for january, 2 for february, , 12 for december), and outputs how many days are in that month. assume no leap years. for example, if the input is 2, the output is 28. if the input is 11, the output is 30.[ there are a variety of ways to do approach is to use 12 separate if-then statements. another approach uses just 3 if-then statements and the logical or operator (which is ||). ]

answer
Answers: 3

Similar questions

Do you know the correct answer?
Write a program that inputs an integer denoting a month (1 for january, 2 for february, , 12 for de...

Questions in other subjects:

Konu
Mathematics, 27.05.2021 06:20
Konu
Mathematics, 27.05.2021 06:20
Konu
Mathematics, 27.05.2021 06:20