Math, asked by aanku8949, 6 months ago

if last day of mth month of the year is Friday then find out nth day (1<=n<=31) of the same month.

Answers

Answered by amitnrw
0

Given : last day of mth month of the year is Friday

To Find : nth day (1<=n<=31) of the same month.

Solution:

m  = 1  to 12

m = 1  , 3 , 5 , 7 , 8 , 10 , 12

then 31st Day  of month is Friday  

then  1st Day  of month = Wednesday

nth Day  =  

find n%7   (  remainder after dividing with 7)

0 = Tuesday

1  =   Wednesday

2 = Thursday

3 = Friday

4 = Saturday

5 = Sunday

6 =  Monday

m =4 , 6 , 9 , 11

then 30th Day  of month is Friday  

then  1st Day  of month = Thursday

nth Day  =  

find n%7   (  remainder after dividing with 7)

0  =   Wednesday

1 = Thursday

2 = Friday

3 = Saturday

4 = Sunday

5 =  Monday

6 = Tuesday

m = 2

Then check if year is leap year or not

if leap year

then  29th Day  of month is Friday  

=> 1st Day is Friday  

if not leap year

then  28th Day  of month is Friday  

=> 1st Day is Saturday

Accordingly further nth day

Learn More:

If the 3rd day of a month is tuesday, which of the following will be the ...

https://brainly.in/question/14966350

Similar questions