Monday 27 June 2016

#include<stdio.h>
#include<conio.h>
void main()
{
int days;
clrscr();
printf("Enter the Number of the day the member is late to return the book");
scanf("%d",&days);
if(days<=5)
printf("\nYou must pay 50 paisa fine");
else if(days>=6 && days<=10)
printf("\nYou must pay 1 rupee fine");
else if (days>10 && days<30)
printf("\nYou must pay 5 rupee fine");
else if(days>=30)
printf("\nYour Membership is Cancelled");

getch();
}

No comments:

Post a Comment