Write a cpp program to calculate simple interest?

#include<iostream.h>
#include<conio.h>
void main()
{
 clrscr();
int p,r,t;
 cout<<"Enter principal: ";
 cin>>p;
 cout<<"Enter interest rate: ";
 cin>>r;
 cout<<"Enter time: ";
 cin>>t;
 cout<<"Simple Interest is: "<<p*r*t*0.01;
 getch();
}

Ourput:


Comments

Popular posts from this blog

Larch Soft Pvt. Ltd. - Best Website & Hosting Provider