PIBblem
Problem Statement
Ryan owns a rectangular plot of land. Due to certain
financial problems, he wishes to selloff his plot
2
Ryan finds out that large square shaped plots el
better than rectangular ones.
1
With this in mind he decides to divide his rectangular
plot into large equal sized square plots so that he can
get maximum profit
Given the dimensions of his plot Write a Program to
Calculate the numbe of quare plots that Ryan can
Input
Answers
Answered by
12
Answer:
RYAN SQAUARE PLOTS INPUT DECIDES TO DIVIDES
Answered by
0
Answer:
Python code:
length = int(input("Enter the length of the rectangular plot: "))
width = int(input("Enter the width of the rectangular plot: "))
area = length * width
side_length = min(length, width)
num_square_plots = area / (side_length ** 2)
print("Number of square plots:", num_square_plots)
You can use this function to find the number of square plots that Ryan can get from his rectangular plot.
Explanation:
To calculate the number of square plots that Ryan can get from his rectangular plot, you can use the following steps:
- First, take the input for the length and width of the rectangular plot.
- Next, calculate the area of the rectangular plot by multiplying the length and width.
- Then, find the minimum of the length and width. This will be the side length of the square plots.
- Finally, divide the area of the rectangular plot by the area of the square plots to find the number of square plots that Ryan can get.
More questions and answers
https://brainly.in/question/50334736
https://brainly.in/question/51847942
#SPJ3
Similar questions