# C Program to calculate Simple Interest after User Input

Published: 2025-02-26 · By Next-G Classes · Source: https://nextgclasses.com/blog/c-program-to-calculate-simple-interest-after-user-input

<strong>Question : Write a program which enters princple amount, rate of interest and time. Then Calculate and print Simple Intrest.<br /><br />S.I=(P*R*T)/100<br /></strong><br />#include &lt;stdio.h&gt;<br />void main()<br />{<br />&nbsp;&nbsp;&nbsp; float p,t,si,r;<br />&nbsp;&nbsp;&nbsp; printf("Enter the value of p, r and t");<br />&nbsp;&nbsp;&nbsp; scanf("%f %f %f",&amp;p,&amp;r,&amp;t);<br />&nbsp;&nbsp;&nbsp; si=(p*r*t)/100;<br />&nbsp;&nbsp;&nbsp; printf("value of si is %f",si);<br />}
