Get Off-Campus Placement Jobs Info !!!
Programs asked in Mettl Coding Round
Click To Practce List of Programs asked in Nagarro !!!

Program Discussion :: Basics

Home > Programs > Basics

70 / 248

Write a program to check whether the entered year is leap year or not?

Answer:

#include 
# include 
using namespace std;
int main()
{
    int year;
    cout year;
    if(year%4 == 0)
    {
        if( year%100 == 0)
        {
            /* year is divisible by 400, hence the year is a leap year */
            if ( year%400 == 0)
                cout 

Asked In :: Wipro

Post Your Answer Here:

Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here: