Leap Year Program In C

Leap Year Program In C in Hindi


Leap Year Program in Hindi:- Find Karne Wale Hain Leap Year Program Ko Ye Program Little Bit Tricky Program Hain. Ham Generally Leap Year Ko Find Karne Ke Liye Year Ko if( ((year%4==0) And ( year%100!=0) ) Or (year%400==0) ) Ye Leap Year Hoga |

Is Program Ham Example Se Sath Acchi Tarah Se Understand Karte Hain |

Leap Year Program in Hindi

Algorithm of this program is −

   Step 1 → Take integer variable year
   Step 2 → Assign value to the variable
   Step 3 → Check if year is divisible by 4 but not 100, DISPLAY "leap year"
   Step 4 → Check if year is divisible by 400, DISPLAY "leap year"
   Step 5 → Otherwise, DISPLAY "not leap year"

Flow Diagram

Leap Year Flowchart


procedure leap_year()
   IF year%4 = 0 AND year%100 != 0 OR year%400 = 0
      PRINT year is leap
      PRINT year is not leap

end procedure


#include <stdio.h>

int main() {
   int year;
   year = 2016;

   if (((year % 4 == 0) &amp;&amp; (year % 100!= 0)) || (year%400 == 0))
      printf("%d is a leap year", year);
      printf("%d is not a leap year", year);

   return 0;


2016 is a leap year

Leave a Reply

Your email address will not be published. Required fields are marked *