Assalamu Alaikum. Hope you all are well by the grace of Almighty ALLAH. Today we learn year program by switch case in C. Let's look at the problem.

Problem: According to the gragorian calender, it was monday on the dat 01/01/01. If any year(2001-2100) is input through the keyboard, write a program to find out what is the day on 1st January of this year.

A year will be a leap year if it is divisible by 4 but not by 100. If a year is divisible by 4 and by 100 it is not a leap year unless it is also divisible by 400.

In this program we have to consider leap year. Let's look at the program.

Problem: According to the gragorian calender, it was monday on the dat 01/01/01. If any year(2001-2100) is input through the keyboard, write a program to find out what is the day on 1st January of this year.

**Solution:**

A year will be a leap year if it is divisible by 4 but not by 100. If a year is divisible by 4 and by 100 it is not a leap year unless it is also divisible by 400.

In this program we have to consider leap year. Let's look at the program.

Thank you all..:)

jekono yr er ta dao...ami partesi na

ReplyDeleteIt's ok...that program will publish very soon..:)

ReplyDelete