#include<stdio.h>
      int main()
      {
          int n, yrs, wks, days;
          printf("Enter number of days");
          scanf("%d", &n);
          yrs=n/365;
          wks=(n%365)/7;
          days=(n%365)%7;
          printf("%d years %d weeks %d days", yrs, wks, days);
          return 0;
      }
      
      C language logo

      number of days

      0

      0

      avatar
      omtajne11

      code to convert number of days into years, weeks and days

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.