Daffodil International University
Problem Link
//Please follow from main function
#include<stdio.h>
int main()
{
int n, year=0, month=0, day=0;
scanf("%d", &n);
year=n/365;
n=n%365;
month=n/30;
n=n%30;
day=n;
printf("%d ano(s)\n%d mes(es)\n%d dia(s)\n", year, month, day);
return 0;
}
0 Comments