Write a program to read the Principle,Time,and Rate nd calculate the Interest and Total Amount
/*A program to read the Principle. Time, and Rate and calculate the Interest and total Amount.
Programmed by:
Name: Jitendra Kumar Yadav
Roll: 16
Date: 8 Jan 2011 */
#include <stdio.h>
#include <conio.h>
void main()
{
float P,T,R,I,A;
printf(“Enter the principle(P):”);
scanf(“%f”,&P);
printf(“Enter the Time(T):”);
scanf(“%f”,&T);
printf(“Enter the Rate(R):”);
scanf(“%f”,&R);
I=(P*T*R)/100;
A=P+I;
printf(“The Interest is %f”,I);
printf(“\nThe total amount is %f”,A);
getch();
Comments (1)