Program to find simple interest.



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.


Comments

Popular posts from this blog

ChatGPT on smartwatches

Progarm to state that a person can cast vote or not. [Note: A person can cast vote if he is 18 years old or above]

C program to display prime numbers between 1 to 100.