WAP to accept a year from the keyboard and cheack the year is leap year or not. - Computer Times

Latest

Sunday 2 September 2018

WAP to accept a year from the keyboard and cheack the year is leap year or not.



leap year  that year whose divide by 4 and not divide 100 else
//===============divide by 400------------like 2000,2004--------
#include<stdio.h>
#include<conio.h>
            void main()
            {
                  int y;
                  clrscr();
                  printf(" ENTER THE YEAR ::");
                  scanf("%d",&y);
                 if((y%4==0 && y%100!=0)||(y%4000))
                            printf("  LEAP YEAR ");
                 else
                          printf(" not leap year");
            getch();
            }


Tages :

leap year program in c++leap year program in c using while loopc program to find leap year using functionhow to find leap year in c


leap year program in javaflowchart for leap year program in cleap year program in python




leap year logic













Computer Coaching in Jalandhar with Dinesh Sir,C,C++,Java Language, Computer Science CBSE,ICSC,State Board.



No comments:

Post a Comment