Introducing the modulo operator % In C++, operator % computes the remainder of the division of x
Fantastic news! We've Found the answer you've been seeking!
Question:
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:
Posted Date: