#include<stdio.h>
#include<conio.h>
#include<conio.h>
void main( )
{
int days ,yr,mn,wk,d;
printf("Enter the no of days");
scanf("%d",&days);
yr = days /365;
mn =(days /365)/30;
wk = (((days/365)%30)/7);
d =(((days/365)%30)%7);
printf("Years= %d \t Months= %d \t Weeks =%d \t days = %d",yr,mn,wk,d);
getch();
{
int days ,yr,mn,wk,d;
printf("Enter the no of days");
scanf("%d",&days);
yr = days /365;
mn =(days /365)/30;
wk = (((days/365)%30)/7);
d =(((days/365)%30)%7);
printf("Years= %d \t Months= %d \t Weeks =%d \t days = %d",yr,mn,wk,d);
getch();
}
No comments:
Post a Comment