Computer Science, asked by gauravkar88, 1 day ago

How to input the area of square and find the side in MS small basic​

Answers

Answered by madhavjha163
5

TextWindow.Write("How long is the rectangle?")

length = TextWindow.ReadNumber()

TextWindow.Write("How wide is the rectangle?")

width= = TextWindow.ReadNumber()

area = length*width

perimeter = 2 * length + 2*width

TextWindow.WriteLine("The area of the rectangle is " + area + ".")

TextWindow.WriteLine("The perimeter of the rectangle is " + perimeter + ".")

Similar questions