Ad Code

WRITE A C PROGRAM TO CALCULATE THE SIMPLE INTEREST.

 Write a C program to calculate the simple interest.



#inlcude<stdio.h>
#include<conio.h>
void main()
{
float P,R,T,SI;
clrscr();
printf(“Enter the Principle of simple interest:”);
scnaf(“%f”,&P);
printf(“\nEnter the Rate of interest:”);
scanf(“%f”,&R);
printf(“\nEnter the Time period of interest:”);
scanf(“%f”,&T);

SI= (P*R*T)/100;
printf(“Simple interest = %f”, SI);
getch();
}


Output:-



Post a Comment

0 Comments

Ad Code