[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Program Discussion :: Basics

Home > Programs > Basics

70 / 279

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: