Write a Python program to enter length and breadth of a rectangle and find its perimeter.

Write a Python program to enter length and breadth of a rectangle and find its perimeter.

Solution :- 

Static 

a = 10
b = 20
c = a+b
print("The sum of 2 number is :- ",c)

Solution

DYNAMIC

a = int(input("Enter the First number :- "))
b = int(input("Enter the Second number :- "))
c = a+b
print("The sum of 2 number is :- ",c)

Solution

TRY THIS CODE

Leave a Reply

Your email address will not be published. Required fields are marked *

sign up!

We’ll send you the hottest deals straight to your inbox so you’re always in on the best-kept software secrets.