#include<stdio.h>
void main()
{
int date , price, x;
printf("Enter the date returning the books \n");
scanf("%d",&date);
if(date <= 5)
price=50;
printf("The price is %d",price);
else if((date > 5) && (date <= 10))
x=date-5;
price=50+x;
printf("The price is %d \n",price);
else if((date >10) && (date <= 30))
x=date-10;
price=55+5*x;
printf("The price is %d \n",price);
else
printf("You'd lost the member qualification");
}