Write a program to find out the Perimeter of a Rectangle

View Make forum posts: 1

Write a program to find out the Perimeter of a Rectangle

Number of replies: 40
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by Mehedi Hasan Rabby -
length = float(input("Enter length: "))
width = float(input("Enter width: "))

perimeter = 2 * (length + width)
print("Perimeter of the rectangle = ", perimeter)
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by Fahim Mahmud 193-15-2939 -
H=float(input("Enter The Height : "))
W=float(input("Enter The Width : "))
p=(2*(H+W))
print("\nPerimeter of Rectangle : ",p)
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by Abdul Wahid 193-15-2992 -

Source code:

hight=float(input("Enter hight : "))
length=float(input("Enter length : "))
print("Perimeter of rectangle is :",2*(hight+length))

In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by Mahmuda Akter Lopa 191-15-1030 -
lenght = int(input("enter Lenght:"))
breadth= int(input("enter Breadth:"))
perimeter = 2 * (lenght + breadth)
print(perimeter)
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle by Jackson

by Jackson Talukder -

l = float(input("Enter the value of length:"))

w = float(input("Enter the value of width:"))

para = 2*(l + w)

print("Parameter of the rectangle is:", para)

In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by Ahmad Umar Mahdi 193-15-1071 -
a = int(input("Enter Length:"))
b = int(input("Enter Width:"))
print("Parameter is:", 2*(a + b))
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by Sadnam Saniat 192-15-2794 -
a=c=int(input("a=c="))
b=d=int(input("b=d="))
Perimeter = 2*(a+b)
print("Perimeter of rectangle is: ",Perimeter)
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by MD: AL AMIN PATWARY -
l = float(input("Enter length: "))
w = float(input("Enter width: "))
perimeter = 2 * (l + w)
print("Perimeter of the rectangle = ", perimeter)
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by Sabrina Tabassum_193-15-1072 -
lenght = int(input("enter Lenght:"))
breadth= int(input("enter Breadth:"))
perameter = 2 * (lenght + breadth)
print("perameter is :",perameter)
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by Mahin Ahmed 191-15-1029 -
X = float(input())
Y = float(input())

perimeter = 2 * (X + Y)
print("Perimeter of the rectangle = ", perimeter)
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by Mohaiminul Islam -

H=float(input("Enter The Height : "))
W=float(input("Enter The Width : "))
p=(2*(H+W))
print("\nPerimeter of Rectangle : ",p)
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by NUSRAT JAHAN (193-15-2924) -
l=float(input("Enter Length : "))
w=float(input("Enter Width : "))
print("Perimeter of Rectangle ,p =",2*(l+w))
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by Al Amin 193-15-2981 -
hight=float(input("Enter hight : "))
length=float(input("Enter length : "))
print("Perimeter of rectangle is :",2*(hight+length))
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by Al-Ifran (193-15-2915) -

Write a program to find out the Perimeter of a Rectangle using python

Attachment perimeter.PNG
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by abdullah al taky 193-15-2917 -
num1=int(input("enter length: "))
num2=int(input("enter width: "))
result=int(num1+num2)
perimeter=int(2*result)
print("the perimeter of rectangle is: ",perimeter)




Attachment Screenshot 2021-06-10 094020.png
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by Rony Ahmed -
X=float(input("Enter The Height : "))
Y=float(input("Enter The Width : "))
P=(2*(x+y))
print("\nPerimeter of Rectangle : ",p)
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by Mohammad Imam Hossain 191-15-2437 -
length=float(input("Enter Rectangle length : "))
width=float(input("Enter Rectangle width : "))

print("Perimeter of Rectangle is :",2*(length+width))
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by Nazbir Ahmed Niloy(191-15-2742) -

length=float(input("Enter Rectangle length : "))

width=float(input("Enter Rectangle width : "))


print("Perimeter of Rectangle is :",2*(length+width))

In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by Apel Mahmud (193-15-2984) -

lenght = int(input("enter Lenght:"))
breadth= int(input("enter Breadth:"))
perimeter = 2 * (lenght + breadth)
print(perimeter)


In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by Fahamidur Rahaman(192-15-2863) -
print("Enter Length of Rectangle: ")
l = int(input())
print("Enter Breadth of Rectangle: ")
b = int(input())
p = 2*(l+b)
print("\nPerimeter = ", p)
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by Ata-E-Elahi 193-15-2946 -
height=float(input("Enter height : "))
length=float(input("Enter length : "))
Rectangle=2*(height+length)
print("Perimeter of rectangle is :",Rectangle)
Attachment Untitled.png
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by Anik Sheikh (193-15-3000) -
length = float(input("Enter length: "))
width = float(input("Enter width: "))

perimeter = 2 * (length + width)
print("Perimeter of the rectangle = ", perimeter)
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by Joshinta Jerin -
length = float(input("Enter length: "))
width = float(input("Enter width: "))

perimeter = 2 * (length + width)
print("Perimeter of the rectangle = ", perimeter)
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by Md. Jannatul Ferdous 191-15-2497 -
lenght = int(input("enter Lenght:"))
breadth= int(input("enter Breadth:"))
perameter = 2 * (lenght + breadth)
print("perameter is :",perameter)
In reply to First post

Re: Write a program to find out the Perimeter of a Rectangle

by RIFAT ahmed (193-15-2911) -
hight=float(input("Enter hight : "))
length=float(input("Enter length : "))
print("Perimeter of rectangle is :",2*(hight+length))