Explanation
Here, length and breadth of rectangle are inputted by user and placed in l and b using scanf. Using the correct formula of area and perimeter, we are able to generate the output. The area and perimeter anre float and the output should be of 2 decimal value, so we have used .2f specifier.
Output
Here the input length and breadth is provided separated by comma as specifier used in scanf.
Exercise:
Find the area of circle where PI=3.1458.
If you have any doubt, let me know...