Find the simple interest in C++.


 #include<iostream.h>

#include<conio.h>

#include<math.h>

int main( )

{

int si, principle, rate, time;

cout<<"Enter the amount\t";

cin>>principle;

cout<<"Enter the rate\t";

cin>>rate;

cout<<"Enter the time\t";

cin>>time;

si=(principle * rate * time)/100;

cout<<si;

getch( );

return 0;

}

To run:
















Output:









Whatsapp group :-Join  Click join to join our group.

Join our Facebook group:- Join Click join to join our group.


No comments:

Post a Comment

theengineerschoice01@gmail.com