/* Choosing the correct type: short */
#include
void main()
{
const float per = 4.5f;
short x = 13136;
short y = 99669;
short z = 12458;
float revenue = 0.0f;
short total = x+y+z; /* Calculate quarterly total */
/* Output monthly sales and total for the quarter */
printf("\n x: %d\n y: %d\n z: %d",x,y,z);
printf("\n Total: %d",total);
/* Calculate the total revenue and output it */
revenue = total/150*per;
printf("\nSales revenue is:$%.2f\n",revenue);
}