bsc

Comprehensive codebase and cou...
Log | Files | Refs | Activity | README | LICENSE

root / semester_1 / tuition-c / APC-PRAC-005.c

APC-PRAC-005.c (439B)


      1 /* WAP a program that accept number of days
      2 as input and represent it as years, months and days. */
      3 
      4 #include <stdio.h>
      5 int main()
      6 {
      7     int days, months, years, temp;
      8     printf("Enter the No. of days : ");
      9     scanf("%d", &days);
     10     temp = days;
     11     years = days / 365;
     12     days = days % 365;
     13     months = days / 30;
     14     days = days % 30;
     15     printf("%d Days = %d Years, %d Months, %d Days", temp, years, months, days);
     16     return 0;
     17 }
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror