A library fees a pleasant for each and every e book again late. For first 5 days the first-rate is 50 paise, for 6-10 days high-quality is one rupee and above 10 days fantastic is 5 rupees. If you return the e book after 30 days your membership will be cancelled. Write a application to be given the variety of days the member is late to return the  e book and show the first-class or the terrific message. 

#include <iostream>
using namespace std;
int main()
{
int days;
cout<<"Enter the number of days the member is late to return the  book : ";
cin>>days;
if ( days <= 5 )
cout<<"Fine applied to the student is 50 paisa";
if ( days > 5 && days < 10 )
cout<<"Fine applied to the student is 1 rupee";
if ( days > 10 && days < 30 )
cout<<"Fine applied to the student is 5 rupees";
if ( days > 30 )
cout<<"Membership has been canceled";
return 0;
}

0 comments:

Post a Comment

If You Have Any Problem While Downloading Comment Below

 
Top