human
Count of smaller rectangles that can be placed inside a bigger rectangle | Function to count smaller rectangles within the larger rectangle.
If the dimension of the smaller rectangle is greater than the bigger one.
Return the number of smaller rectangles possible.
Driver code.
Dimension of bigger rectangle.
Dimension of smaller rectangle.
Function call"
Solution in Python:
assistant
#Here is code to count of smaller rectangles that can be placed inside a bigger rectangle and the other steps required.
 def No_of_rectangles ( L , B , l , b ) :
	if ( l > L ) or ( b > B ) :
		return - 1 ;
	else :
		return ( L - l + 1 ) * ( B - b + 1 ) ;
if __name__ == ' _ _ main _ _ ' :
	L = 5
	B = 3
	l = 4
	b = 1
	print ( No_of_rectangles ( L , B , l , b ) )