Given three integers P,R and T, denoting Principal, Rate of Interest and Time period respectively.Compute the simple Interest.
Example 1:
Input:
P=100
R=20
T=2
Output:
40.00
Explanation:
The simple interest on 100 at a rate
of 20% across 2 time periods is 40.
Example 2:
Input:
P=999
R=9
T=9
Output:
809.19
Explanation:
The simple interest on 999 at a rate 
of 9% across 9 time periods is 809.19
Your Task:
You don't need to read input or print anything.Your Task is to complete the function simpleInterest() which takes three integers P,R and T and returns the simple interest.
Expected Time Complexity:O(1)
Expected Auxillary Space:O(1)
 
Constraints:
1<=P<=10^{5}
1<=R,T<=100

Source: geeksforgeeks | Difficulty: EASY
Tags: Mathematics

Starter code: #User function Template for python3



class Solution:

    def simpleInterest(self,A,B,C):

        #code here

Solutions:
class Solution:

	def simpleInterest(self, A, B, C):
		return A * B * C / 100


class Solution:

	def simpleInterest(self, p, r, t):
		return p * r * t / 100


class Solution:

	def simpleInterest(self, A, B, C):
		return P * R * T / 100


class Solution:

	def simpleInterest(self, A, B, C):
		x = A * B * C
		s = x / 100
		return s


class Solution:

	def simpleInterest(self, A, B, C):
		t1 = A * B
		t2 = t1 * C
		t3 = t2 / 100
		return t3


class Solution:

	def simpleInterest(self, A, B, C):
		i = A * B * C
		I = i / 100
		return I


class Solution:

	def simpleInterest(self, P, R, T):
		return P * R * T / 100


class Solution:

	def simpleInterest(self, A, B, C):
		return round(A * B / 100 * C, 2)


class Solution:

	def simpleInterest(self, A, B, C):
		x = B * C
		p = A * x / 100
		return p


class Solution:

	def simpleInterest(self, A, B, C):
		cal = A * B * C
		si = cal / 100
		return si


class Solution:

	def simpleInterest(self, P, R, T):
		si = P * R * T / 100
		return si
	simpleInterest(2, 100, 20, 2)
	simpleInterest(9, 999, 99, 9)


class Solution:

	def simpleInterest(self, A, B, C):
		x = A * B * C
		si = x / 100
		return si