j

Tuesday, 3 November 2015

Write a program that take per hour rent of a hotel room and total number of hour of stay of custumer at hote and fine the total bill of customer



#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int hour_rent,no_hour,bill;
printf("Enter per hour rent ::");
scanf("%d",&hour_rent);
printf("Enter total hour of stay of customer at hotel ::");
scanf("%d",&no_hour);
bill=no_hour*hour_rent;
printf("Bill of customer is %d",bill);
getch();
}

Subscribe to this Blog via Email :