Write a program in C++ to find SIMPLE INTEREST

#include <iostream.h>
#include <conio.h>

int main() {
    //p=principle, r=rate, t=time in years
    float p, r, t;
    
    cout << "Principle: ";   
    cin >> p;
    
    cout << "Rate: ";
    cin >> r;
    
    cout << "Time: ";
    cin >> t;
    
    cout << endl << "Simple Interest:" << p*r*t/100;
    
    getch();
    return 0;
}


Output:

Leave a Reply

Contact Form

Name

Email *

Message *

Followers