Computer Science, asked by nathcharxbkhxb, 10 hours ago

Write a python function to convert area square meters into square wa, ngan, rai by taking parameters (square meters).

Answers

Answered by MichMich0945
1

Function:

# Python function to convert square meters to

# 1) Square wa

# 2) Ngan, and;

# 3) Rai

def covert_from_squareMeter(sqMeters):

   # Convert it into square wa

   # Equation: wah = sq.meters/4

   wahs = sqMeters/4

   # Convert sq. meter into ngan

   # Equation: ngan = 100 wah

   ngan = 100 * wahs

   # Convert sq. mter into rai

   # Equation: rai = 4 ngan

   rai = 4 * ngan

   print(sqMeters, "meter square is equal to:")

   print("1)", wahs, "sq. wah")

   print("2)", ngan, "ngan")

   print("3)", rai, "rai")

Hope this helps you!

Similar questions