#include<stdio.h>
#include<conio.h>
int main()
{
float chrg;
int lat;
printf("Enter the days you're late : ");
scanf("%d", &lat);
if(lat<=5)
chrg=0.50;
if(lat>5 && lat<11)
chrg=1.0;
if(lat>10 && lat<31)
chrg=5.0;
if(lat>30)
printf("\n\nYour library membership has been cancelled de to over delay to returning the book.");
printf("\n\nYour library charges are Rs. %f", chrg);
getch();
return 0;
}