C program to convert given number of days into years, weeks and days

In this C program you will know how to convert given number of days into years, weeks and days.

For example:

If user enter 1234 days then.
Years = 3
Weeks = 21
Days = 1
 
Comment below if you are facing any problem to understand the logic of this program.

 

Output
C program to convert given number of days into years,weeks and days

 

2 thoughts on “C program to convert given number of days into years, weeks and days

  1. Ruturaj Pansare

    Dear Sir,Your program is completely inappropriate.When we enter days=1234,years should be 3,weeks should be 176[logic =176*7=1232] instead it is showing 21.Simply illogical.
    I recommend a simple program to find no of weeks
    i.e days/7;

    Reply
    1. Admin Post author

      The program is working absolutely fine. Just go and check the logic again.

      Reply

Leave a Reply

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