/* Write a C program to convert specified days into years, weeks and days. */

#include <stdio.h> 
int main(void) {

  printf("This program will convert a specified amount of days into years, months and remaining days.");

  int years, weeks, days;

   printf("Enter a number of days: ");
   scanf("%d", &days);

   years = days / 365;
   weeks = (days % 365) / 7;
   days = days - ((years * 365) + (weeks * 7));

   printf("Years: %d\n", years);
   printf("Weeks: %d\n", weeks);
   printf("Days: %d\n", days);

    return 0;
}