subject

Write a program segment that decides whether a given year is a leap year or not. a year is a leap year if it is divisible by 4, except for the case when it is also divisible by 100 and not by 400 hundred. so, for example, 1999 is not a leap year because it is not divisible by 4; 2000 is a leap year because it is divisible by 4 and although it is divisible by 100, it is also divisible by 400; 1900 however, is not a leap year because it is divisible by 100 and not by 400. finally, 2004 is a leap year because it is divisible by 4 and not by 100. your code should use an int named year for comparisons and print "leap year" if the value in year is a leap year and "not a leap year" if it is not. hint: you will need to use nested if statements in this code!

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:30
Write lines of verse that rhyme to remember the following information: acid rain is a type of air pollution caused by chemicals in the air.
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
You need a quick answer from a coworker. the most effective way to reach your coworker is through a. cloud server b. instant message c. teleconference d. telepresence
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What key should you press and hold to select and open multiple files at one time? enter alt control esc
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
You have been supporting csm tech publishing's windows server 2016 server network for over a year. the office has two windows server 2016 servers running active directory and a number of other roles. management has informed you that a small sales office is opening in the same building three floors up. the sales manager wants to install a sales application on a server located in the sales office. this server will have limited physical security because there's no special room dedicated for it, which means it will be accessible to non-it personnel and visitors. you're considering installing windows server 2016 server core on the new server because accessing its console regularly probably won't be necessary, and this server will be managed from one of the other csm tech publishing servers. what are the benefits and drawbacks of using server core for this branch office? what are some things you should do to set up this server management environment?
Answers: 1
You know the right answer?
Write a program segment that decides whether a given year is a leap year or not. a year is a leap ye...
Questions
question
Mathematics, 02.02.2021 16:10
question
History, 02.02.2021 16:10
question
Mathematics, 02.02.2021 16:10
question
Biology, 02.02.2021 16:10
question
Mathematics, 02.02.2021 16:10
Questions on the website: 13722359