Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python program to calculate area of a rectangle using function

def AreaofRectangle(width, height):
    Area = width * height
    print("Area of a Rectangle is: %.2f" %Area)
AreaofRectangle(8, 6)
Source by pythonguides.com #
 
PREVIOUS NEXT
Tagged: #Python #program #calculate #area #rectangle #function
ADD COMMENT
Topic
Name
6+2 =