Chapter 2 Updatelet Us C Solutions



Solutions to Let Us C 15th Edition. Contribute to hiverkiya/Let-Us-C-Solutions development by creating an account on GitHub. Chapter 2: Is Matter Around Us Pure – NCERT Solution Get here Class 9 science NCERT Textbook Answers of Chapter 2. NCERT Solutions Class IX Science includes answers of all the questions of Is Matter Around Us Pure provided in NCERT Text Book which is prescribed for class 9 in schools.

Chapter 2 Updatelet Us C Solutions Inc

Solutions

Chapter 2 Updatelet Us C Solutions Pvt Ltd

Chapter 2 updatelet us c solutions collection agencyUpdateletChapter

Chapter 2 Updatelet Us C Solutions Collection Agency

Question-According to the Gregorian calendar, it was Monday on the date 01/01/1900. If any year is input through the keyboard write a program to find out what is the day on 1st January of this year.
Solution-
it's nothing but a simple program, it can be easily done by using above concept. that's how it goes.
#include<stdio.h>
int main()
{
int yr=2012,totdays,normaldays,leapdays,k=yr-1;
printf('Enter any yearn');
scanf('%d',&yr);
normaldays=365*k;
leapdays=k/4+k/400-k/100;
totdays=normaldays+leapdays;
if(totdays%70)
printf('Mondayn');
if(totdays%71)
printf('Tuesdayn');
if(totdays%72)
printf('Wednesdayn');
if(totdays%73)
printf('Thursdayn');
if(totdays%74)
printf('Fridayn');
if(totdays%75)
printf('Saturdayn');
if(totdays%76)
printf('Beloved Sunday');
return 0;
}