Need to write a program in C according to the followingdescription:
You need to ask the user for the dimensions of the carpetassuming that it will be in the shape of rectangle ( remember thatsquare is also a rectangle with all sides of the same length.) Thecost of carpet is $20 per square units and there is a 10% discounton the price. Program needs to print the cost of carpet afterdeducting the discount.
Here are the functions that should be used in the code andshould be called from the main function-
- One function to ask for the length.
- One function to ask for width.
- One
OROR