/* Write a program that reads the number of days the person stays in the hotel, the price of the hotel per day, and the tax (integer). The program finds and prints the total price of the hotel stay. */ #include int main(){ int days, tax; float price, total; printf("enter price, days, tax\n"); scanf("%f%d%d",&price, &days, &tax); /* input: %f - float, %d - int, %lf - double */ /* output: %f - float/double, %d - int */ total=price*days+price*days*tax/100; //(price*days)*(1+(float)(tax)/100) printf("total price %f\n",total); return 0; }