Question: Introducing the modulo operator % In C++, operator % computes the remainder of the division of x by y . For example, 37 %1e returns
Introducing the modulo operator % In C++, operator % computes the remainder of the division of x by y . For example, 37 %1e returns 7 , because this is the remainder of 37 when divided by 10 The task Write a program leap.cpp that asks the user to input an integer representing a year number (1999, 2016, etc.). If the input year is a leap year according to the modern Gregorian calendar, it should print Leap year , otherwise, print Common year In the modern Gregorian calendar, a year is a leap year if it is divisible by 4, but century years are not leap years unless they are divisible by 400. Here is the pseudocode:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
