Given the length of rectangle, width of rectangle, base of right angled triangle, perpendicular of right angled triangle and radius of circle respectively. Calculate the area of rectangle, right angled triangle and circle.
 
Example 1:
Input: L = 32 , W = 32 , B = 54 
       H = 12 , R = 52
Output: 1024 324 8490 
Explanation:
Area of Rectangle = L*W = 32*32 = 1024
Area of Triangle = 0.5*B*H = 0.5*54*12 = 324
Area of Circle = 3.14*(52)^{2} = 8490
Example 2:
Input: L = 2 , W = 2 , B = 4 
       H = 8 , R = 4
Output: 4 16 50
Explanation:
Area of Rectangle = L*W = 2*2 = 4
Area of Triangle = 0.5*B*H = 0.5*4*8 = 16
Area of Circle = 3.14*(4)^{2} = 50
 
Your Task:
You don't need to read input or print anything. Your task is to complete the function getAreas() which takes 5 Integers L, W, B, H, R as input and returns the answer in a list of 3 integers.
 
Expected Time Complexity: O(1)
Expected Auxiliary Space: O(1)
 
Constraints:
1 ≤ L,W,B,H,R ≤ 10^{4}

Source: geeksforgeeks | Difficulty: EASY
Tags: Mathematics

Starter code: #User function Template for python3

class Solution:
    def getAreas(self, L , W , B , H , R):
        # code here

Solutions:
class Solution:

	def getAreas(self, L, W, B, H, R):
		rectangle = int(L * W)
		triangle = int(0.5 * B * H)
		circle = int(3.14 * R ** 2)
		return (rectangle, triangle, circle)


class Solution:

	def getAreas(self, L, W, B, H, R):
		return (L * W, int(0.5 * B * H), int(3.14 * R * R))


class Solution:

	def getAreas(self, L, W, B, H, R):
		res = []
		v1 = L * W
		v2 = int(0.5 * B * H)
		v3 = int(3.14 * R ** 2)
		res.append(v1)
		res.append(v2)
		res.append(v3)
		return res


class Solution:

	def getAreas(self, L, W, B, H, R):
		area_rec = L * W
		area_tri = 0.5 * B * H
		area_cir = 3.14 * R ** 2
		return (area_rec, int(area_tri), int(area_cir))


class Solution:

	def getAreas(self, L, W, B, H, R):
		rec = int(L * W)
		tri = int(0.5 * B * H)
		cir = int(3.14 * R ** 2)
		return (rec, tri, cir)


class Solution:

	def getAreas(self, L, W, B, H, R):
		A = L * W
		B = 0.5 * B * H
		C = 3.14 * R ** 2
		return (int(A), int(B), int(C))


class Solution:

	def getAreas(self, L, W, B, H, R):
		h = int(3.14 * R * R)
		return (L * W, B * H // 2, h)


class Solution:

	def getAreas(self, L, W, B, H, R):
		a = L * W
		b = 0.5 * B * H
		c = 3.14 * R * R
		return (int(a), int(b), int(c))


class Solution:

	def getAreas(self, L, W, B, H, R):
		x = L * W
		t = 0.5 * B * H
		c = 3.14 * R * R
		return (x, int(t), int(c))


class Solution:

	def getAreas(self, L, W, B, H, R):
		return [L * W, B * H // 2, R ** 2 * 314 // 100]


class Solution:

	def getAreas(self, L, W, B, H, R):
		ar = L * W
		at = int(B * H * 0.5)
		ac = int(3.14 * R ** 2)
		return [ar, at, ac]


class Solution:

	def getAreas(self, L, W, B, H, R):
		arr = [0 for i in range(3)]
		arr[0] = L * W
		arr[1] = int(0.5 * B * H)
		arr[2] = int(3.14 * R * R)
		return arr


class Solution:

	def getAreas(self, L, W, B, H, R):
		AOT = L * W
		AORT = B * H // 2
		AOC = 3.14 * R ** 2
		return (AOT, AORT, int(AOC))


class Solution:

	def getAreas(self, L, W, B, H, R):
		lst = [0, 0, 0]
		lst[0] = int(L * W)
		lst[1] = int(0.5 * B * H)
		lst[2] = int(3.14 * (R * R))
		return lst


class Solution:

	def getAreas(self, L, W, B, H, R):
		a_o_r = L * W
		a_o_t = 0.5 * B * H
		a_o_c = 3.14 * R ** 2
		return (a_o_r, int(a_o_t), int(a_o_c))


class Solution:

	def getAreas(self, L, W, B, H, R):
		rectarea = L * W
		triarea = 0.5 * B * H
		circarea = 3.14 * R * R
		areas = [0] * 3
		areas[0] = int(rectarea)
		areas[1] = int(triarea)
		areas[2] = int(circarea)
		return areas


class Solution:

	def getAreas(self, L, W, B, H, R):
		AreaRectangle = L * W
		AreaTriangle = int(0.5 * B * H)
		AreaCircle = int(3.14 * R * R)
		return (AreaRectangle, AreaTriangle, AreaCircle)


class Solution:

	def getAreas(self, L, W, B, H, R):
		rec_area = L * W
		tri_area = 0.5 * B * H
		circle_area = 3.14 * R * R
		return (int(rec_area), int(tri_area), int(circle_area))


class Solution:

	def getAreas(self, L, W, B, H, R):
		Area_of_Rectangle = L * W
		Area_of_Triangle = 0.5 * B * H
		Area_of_Circle = 3.14 * R ** 2
		return (int(Area_of_Rectangle), int(Area_of_Triangle), int(Area_of_Circle))


class Solution:

	def getAreas(self, L, W, B, H, R):
		ar = int(L * W)
		AT = int(0.5 * B * H)
		AC = int(3.14 * R ** 2)
		return (ar, AT, AC)


from math import pi

class Solution:

	def getAreas(self, L, W, B, H, R):
		RectArea = L * W
		TriArea = int(0.5 * B * H)
		CircArea = int(3.14 * R ** 2)
		return [RectArea, TriArea, CircArea]


import math

class Solution:

	def getAreas(self, L, W, B, H, R):
		return [L * W, int(0.5 * B * H), int(3.14 * R ** 2)]


class Solution:

	def getAreas(self, L, W, B, H, R):
		area_rect = L * W
		area_trai = 0.5 * B * H
		area_circ = 3.14 * R ** 2
		return [int(area_rect), int(area_trai), int(area_circ)]


class Solution:

	def getAreas(self, L, W, B, H, R):
		area = []
		area.append(L * W)
		area.append(int(0.5 * B * H))
		area.append(int(3.14 * R ** 2))
		return area


class Solution:

	def getAreas(self, L, W, B, H, R):
		rect = L * W
		rat = int(0.5 * B * H)
		circle = int(3.14 * R * R)
		return (rect, rat, circle)


class Solution:

	def getAreas(self, l, w, b, h, r):
		rect = l * w
		tri = int(0.5 * b * h)
		circle = int(3.14 * r ** 2)
		return [rect, tri, circle]


class Solution:

	def getAreas(self, L, W, B, H, R):
		rec = L * W
		tr = 0.5 * B * H
		c = 3.14 * R ** 2
		return (int(rec), int(tr), int(c))


class Solution:

	def getAreas(self, L, W, B, H, R):
		area_r = L * W
		area_t = int(0.5 * B * H)
		area_c = int(3.14 * R ** 2)
		return (area_r, area_t, area_c)


class Solution:

	def getAreas(self, L, W, B, H, R):
		area_rectangle = L * W
		area_triangle = int(0.5 * B * H)
		area_circle = int(3.14 * R ** 2)
		return (area_rectangle, area_triangle, area_circle)


class Solution:

	def getAreas(self, L, W, B, H, R):
		arec = L * W
		atri = 0.5 * B * H
		acirc = 3.14 * R * R
		return [arec, int(atri), int(acirc)]


class Solution:

	def getAreas(self, L, W, B, H, R):
		lst = []
		P = int(L * W)
		lst.append(P)
		Q = int(0.5 * B * H)
		lst.append(Q)
		O = int(3.14 * R ** 2)
		lst.append(O)
		return lst


class Solution:

	def getAreas(self, L, W, B, H, R):
		l = []
		Rectangle = L * W
		Triangle = int(0.5 * B * H)
		AreaofCircle = int(3.14 * math.pow(R, 2))
		l.append(Rectangle)
		l.append(Triangle)
		l.append(AreaofCircle)
		return l


class Solution:

	def getAreas(self, L, W, B, H, R):
		rect_area = L * W
		tri_area = 0.5 * B * H
		cir_area = 3.14 * R ** 2
		return (int(rect_area), int(tri_area), int(cir_area))


import math

class Solution:

	def getAreas(self, L, W, B, H, R):
		rectangle = math.trunc(L * W)
		triangle = math.trunc(0.5 * B * H)
		circle = math.trunc(3.14 * R ** 2)
		return (rectangle, triangle, circle)


class Solution:

	def getAreas(self, L, W, B, H, R):
		a1 = L * W
		a2 = 0.5 * B * H
		a3 = 3.14 * R * R
		return (int(a1), int(a2), int(a3))


import math

class Solution:

	def getAreas(self, L, W, B, H, R):
		rec = L * W
		tri = 0.5 * (B * H)
		cir = 3.14 * R ** 2
		return (math.floor(rec), math.floor(tri), math.floor(cir))


class Solution:

	def getAreas(self, L, W, B, H, R):
		area_of_rectangle = L * W
		area_of_triangle = 0.5 * B * H
		area_of_circle = 3.14 * (R * R)
		return (area_of_rectangle, int(area_of_triangle), int(area_of_circle))