GeeksforGeeks Solution For School Domain .Below You Can Find The Solution Of Basic ,Easy ,Medium ,Hard .You Can Also Direct Submit Your Solution to Geeksforgeeks Same Problem .You Need to login then you can submit you answers
Problem :- Write a program to find the simple interest for given principal amount P, time T(in years) and rate R.
Submit Your Solution :- Click Here
Solution :-
#include <iostream>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
int si=0,p=0,t=0,r=0;
cin>>p>>t>>r;
si=(p*t*r)/100;
cout<<si<<endl;
}
return 0;
}
Output:-
0 Comments: