Here we will discuss c++ language and will know more about this topic
Write program to input principal, rate and time and find its simple interest in c++. [Interest=(Principal*Rate*Time)/100]
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int p,r,t,i;
cout << "Calculate the Simple Interest "<<endl;
cout << " -----------------------------------"<<endl;
cout<<" Input the Principle: ";
cin>>p;
cout<<" Input the Rate of Interest: ";
cin>>r;
cout<<" Input the Time: ";
cin>>t;
i=(p*r*t)/100;
cout<<" The Simple interest for the amount "<<p<<" for "<<t<<" years @ "<<r<<" % is: "<<i;
cout << endl;
getch();
}
Write a program to input a three digit number and reverse it in Turbo C++
Write a program to input a three digit number and reverse it in Turbo C++