#include<iostream>
using namespace std;
#include<conio.h>
int main()
{
int nu_days;
cout<<"Enter the number of nu_days the member is late to return the book : ";
scanf("%d",&nu_days);
if(nu_days<=5)
cout<<"\nYou mpay 50 Rupes fine..."; // '\n' is used for new line
else if(nu_days>=6&&nu_days<=10)
cout<<"\nYou pay 1 Rupee fine...";
else if(nu_days>10&&nu_days<30)
cout<<"\nYou pay 5 Rupees fine...";
else if(nu_days>=30)
cout<<"\nYour membership is cancell...";
getch();
return 0;
}
using namespace std;
#include<conio.h>
int main()
{
int nu_days;
cout<<"Enter the number of nu_days the member is late to return the book : ";
scanf("%d",&nu_days);
if(nu_days<=5)
cout<<"\nYou mpay 50 Rupes fine..."; // '\n' is used for new line
else if(nu_days>=6&&nu_days<=10)
cout<<"\nYou pay 1 Rupee fine...";
else if(nu_days>10&&nu_days<30)
cout<<"\nYou pay 5 Rupees fine...";
else if(nu_days>=30)
cout<<"\nYour membership is cancell...";
getch();
return 0;
}
No comments:
Post a Comment