C++ program to compute simple interest and compound interest.

 Q27. Write a program to compute simple interest and compound interest.

Ans.

#include<iostream.h>

#include<math.h>   //for pow()

#include<conio.h>  //for clrscr()

 

//Main Function

void main()

{

float principle,rate,time,n,SI,CI,f;

clrscr();   //for clear screen

 

cout<<“\n Enter Principle Amount: “;

cin>>principle;

cout<<“\n Enter Interest Rate: “; Read More …