Friday, December 13, 2019

Write a program in python to Calculate Area of Rectangle

Write a program in python to Calculate Area of Rectangle


# Python Program - Calculate Area of Rectangle

print("Enter 'x' for exit.");
leng = input("Enter length of Rectangle: ");
if leng == 'x':
    exit();
else:
    brea = input("Enter breadth of Rectangle: ");
    length = int(leng);
    breadth = int(brea);
    area = length*breadth;
    print("\nArea of Rectangle =",area);

No comments:

Post a Comment

Grocery business

 The grocery business involves the retail and distribution of food and household products. Here are some key aspects: Key Players: 1. *Super...