Computer Science, asked by mayankchowdhury, 2 months ago

Wap to input days as total days and print it in years months and days.

Use the method of class 8 no scanner​

Answers

Answered by XxSilentAgent47xX
0

Answer:

The program output is also shown below.

* C program to convert given number of days to a measure of time given.

* in years, weeks and days. ...

* 1 week and 3 days (ignore leap year)

#define DAYSINWEEK 7.

int ndays, year, week, days;

printf("Enter the number of days\n");

scanf("%d", &ndays);

year = ndays / 365;

Explanation:

Here is your answers

Similar questions