This is c program that ask user to find out the interest of value. Here user declares the variables for containing the value in it. User has all components to find out the interest of value. User asks to enter the number for program execution and use the method of Simple interest. Display the result on the screen as output.
Problem Statement:
This is c program that ask to find out the simple interest.
Syntax of Simple interest method:
"si =p*r*t/100; "
Here is C source code to find out the Simple interest. Output of this program shown below.
#include<stdio.h>
main()
{
int p,r,t,si;
clrscr();
printf("enter the p,r,t");
scanf("%d%d%d",&p,&r,&t);
si=p*r*t/100;
printf("%d",si);
getch();
}