#include<stdio.h>
#include<conio.h>
void main()
{
int a=100,n,bill,t,rs;
printf("enter rupees per night:");
scanf("%d",&rs);
printf("enter telephone charges:");
scanf("%d",&t);
printf("enter days=%d\ntelephone charges=%d\nroom service=%d\n",a,t,rs);
printf("enter no of days: ");
scanf("%d",&n);
bill=((a+t+rs)*n);
printf("\nbill=%d",bill);
getch();
}
Good day, if you had to do the program as weeknights and weekends rates. How would you go about doing that?
ReplyDelete