jituTechnology

jituTechnology

A year is entered through the keyboard, write a program to determine whether it is leap or not

This is the c source code for: A year is entered through the keyboard, write a program to determine whether it is leap or not

/* A program to find out whether the year is leap or not*/
#include <stdio.h>
#include <conio.h>
void main()
{
     int year;
   printf(“Enter the value of year:”);
   scanf(“%d”,&year);
   if ((year%4==0 && year%100!=0)||(year%100==0 && year%400==0))
   printf(“The year is leap”);
   else
   printf(“The year is not leap”);
   getch();
}

No comments yet.

Add a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.



Connect with Me

GPO 8973 NPC 541; Kathmandu Nepal
Phone: +977 9851236800

Calendar

January 2026
S M T W T F S
 123
45678910
11121314151617
18192021222324
25262728293031