18. condays.c

/*this program converts days to weeks and months*/
#include <stdio.h>
int main ()
{
float days;
int index;
printf("Welcome to day converter\n");
printf("=======================================\n");
printf("Please insert how many days u want: ");
        scanf("%f", &days);
printf("\nThe total of days is %f\n",days);
printf("\nThe number of weeks is %f\n",days /7);
printf("\nThe number of months is %f\n", days /30); 
}