|
CS256 - Fundamentals of Structured Programming
| Displaying exercises/e4/files/h5.c
#include <stdio.h>
/**
* Prompt the user to input a wall's height and width. Calculate and output the
* wall's area (to 2 decimal places) and calculate and output the amount of
* paint in gallons needed to paint the wall (to 2 decimal places, read the
* online manual for printf (man 3 printf) and the section about "precision".)
* Assume a gallon of paint covers 400 square feet.
* Example input/output:
* Height: 9
* Width: 16
* Area: 144.00 sq.ft.
* Paint needed: 0.36 gallons
*/
int main(void)
{
return 0;
}
|