C Program to find the simple interest

C Program to find the simple interest
#include<stdio.h>
#include<conio.h>

void main()
{
int amount,rate,time,si;
clrscr();

printf("nEnter Principal Amount : ");
scanf("%d",&amount);

printf("nEnter Rate of interest : ");
scanf("%d",&rate);

printf("nEnter Period of Time   : ");
scanf("%d",&time);

si = (amount * rate * time)/100;

printf("Simple Intrest : %d",si);

getch();
}
Output :
Enter Principal Amount : 500
Enter Rate of interest : 5
Enter Period of Time   : 2
Simple Interest : 50

Share this

Related Posts

Previous
Next Post »