Explanation
Here after getting principal, time and rate from user using scanf, we have calculated simple interest and putted in 2 decimal value after point, so we used .2f in the result.
Output
Exercise:
Find the average of four numbers given by user.
If you have any doubt, let me know...