Write the output of the following programs.
I=int(input("Enter the length of the rectangle."))
B=int(input("Enter the breadth of the rectangle."))
ar=1*b
Answers
Answered by
2
Output!
Answer:
Dear User,
Your original Program will not work out because of some common syntax errors.
Solving Syntax Errors
The 3rd line which is ar=1*b
The b was not defined. So we can make it a capital B and it will work.
After you print the output, the program seems to be still incomplete because it didn't show the output and it was simply blank, so we will do as follows:
L=int(input("Enter the length of the rectangle."))
B=int(input("Enter the breadth of the rectangle."))
ar=(L*B)
print("The area is", ar)
this was the end of the code, Please mark me brainliest!
Attachments:
Similar questions