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 Compound Interest ?


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

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


Output

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

Comments