Monday, August 2, 2021

C++ Program to find Leap Year or Not Leap Year

C++ Program to find Leap Year or Not Leap Year

#include<iostream.h>

#include<conio.h>

void main()

{

int y

 clrscr();

 cout<<"\nEnter any Year ";

 cin>>y;

 if(y%4==0 || y%400==0)

  {

   cout<<"\n Leap Year";

  }

  else

  {

   cout<<"\n Not Leap Year";

  }

 getch();

}

No comments:

Post a Comment

Programmingway@Eklavya Technosys!: Class - 7 A or B | Computer | 100 Questions!

Programmingway@Eklavya Technosys!: Class - 7 A or B | Computer | 100 Questions! :  1) What is digital citizenship? 2) What is a digital citi...