Monday 28 March 2016

Write a program to find simple interest using C++ language.

// Write a program to find simple interest.

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

int main()
{   
   
    clrscr();
    int p,t;
    float r,si;
    cout<<"Enter Principle : ";
    cin>>p;
    cout<<"Enter Rate : ";
    cin>>r;
    cout<<"Enter Time : ";
    cin>>t;
    si=(p*r*t)/100;
    cout<<"Simple interest is : "<<si;

    getch();
    return (0);
}

OutPut:-



No comments:

Post a Comment