Friday, May 15, 2020

Leap year

//Check whether is year is leap or not

int year=2020;
if(year%4==0)
{
cout<<"leap\n";
}
else
{
cout<<"Not leap\n";
}

No comments:

Post a Comment

Maximum No

//Find the Maximum No between Three Nos' int i=10,o=20,k=30; if(i>o &&i>k) { cout<<"1st is g\n";...