HTML Tutorial || Networking Assignment || Computer Full Forms || Ms-Office Shortcut Keys || Ms-Office Notes || Number System Notes || Internet Assignment
JavaScript Tutorial || CSS Tutorial || Operating System Notes || History of Computer Assignment || Netwoking Notes || Computer Fundamentals Notes

C Program to Enter P,T,R and Calculate Simple Interest ?


Q:- Write a C Program to Enter P,T,R and Calculate Simple Interest ?
Input

#include<stdio.h>
#include<conio.h>
#include<math.h>
int main()
{
float principle,time,rate,si;
clrscr();
printf("Enter Principle (Amount) =");
scanf("%f",&principle);
printf("Enter Time =");
scanf("%f",&time);
printf("Enter Rate =");
scanf("%f",&rate);
si=()principle*time*rate/100;
printf("Simple Interest =%.2f",si);
getch();
       }


Output

Enter principle(Amount) = 1200
Enter Time = 2
Enter Rate = 5.4
Simple Interest = 129.60

Comments