Write a C++ Program to check Year is leap year or not.


SUBMITTED BY: Nrupeshsinh

DATE: June 23, 2016, 10:16 a.m.

FORMAT: Text only

SIZE: 231 Bytes

HITS: 691

  1. # include<iostream.h>
  2. # include<conio.h>
  3. void main()
  4. {
  5. clrscr();
  6. int n;
  7. cout<<"Enter Year : ";
  8. cin>>n;
  9. if(n%4==0)
  10. {
  11. cout<<endl<<n<<"Leap Year";
  12. }
  13. else
  14. {
  15. cout<<endl<<n<<"Not Leap Year";
  16. }
  17. getch();
  18. }

comments powered by Disqus