Name: Manthan Malusare
Div:- C Roll no. :- 21
Program No. 2
Program Statement: Write a program to
find the Simple interest (SI).
Program:
#include<stdio.h>
#include<conio.h>
void main()
float p,r,t,interest;
clrscr();
printf("Enter the principal amount");
scanf("%f",&p);
printf("Enter the annual rate of interest");
scanf("%f",&r);
printf("Enter the time period in years");
scanf("%f",&t);
interest=(p*r*t)/100;
printf("The Simple Interest for the given parameters is %f",interest);
getch();
Output: