bsc

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

root / semester_1 / tuition-c / P015.c

P015.c (399B)


      1 /*WAP to accept number of days and
      2 display it after converting into
      3 number of years, months and days */
      4 
      5 #include<stdio.h>
      6 int main() {
      7 	int day, month, year, temp;
      8 	printf("Enter the number of days : ");
      9 	scanf("%d", &day);
     10 	temp = day;
     11 	year = day / 365;
     12 	day = day % 365;
     13 	month = day / 30;
     14 	day = day % 30;
     15 	printf("\n%d Days = %d Years %d Months %d Days", temp, year, month, day);
     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