Write analgorithm to read
length and breadth of a
rectangle
and find its
area .
Answers
Answered by
0
Answer:
1) Take input from the user. Make sure it's not a string . Can be float or integer
2) calculate area , area = length*breadth
3) Finally print it
Explanation:
This is the code in Python 3 .
length_of_rec = int(input('Enter the length: '))
breadth_of_rec = int(input('Enter the breadth: '))
area = length_of_rec*breadth_of_rec
print(f'Area of rectangle is {area}')
Similar questions