A carpenter wants to make a ladder, but he want to calculate the required wood for it. The distance between each step is 1 foot. Write a C++ program in which, take the length and width of ladder as input
from user and calculate the required wood. Price of wood is 500 per foot calculate the price of wood as
well.
Example:
Input: Output:
Enter the length of ladder in foot: 25
Enter the width of ladder in foot: 2
Required wood in foot: 98
Cost of wood is: 49000
Comments
Leave a comment