c program to calculate simple interest


Example

#include<stdio.h>
#include<conio.h>
void main()
{
    int p,n,r,si;
    clrscr();
    printf("Enter Principle, Rate of interest & Time :");
    scanf("%d%d%d",&p,&r,&n);
    si=(p*r*n)/100;
    printf("Simple Interest is :%d",si);
    getch();
}
                                


Output

Enter Principle,Rate of interest & Time :1000
10
24
Simple Interest is :2400