How to input the area of square and find the side in MS small basic
Answers
Answered by
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
Social Sciences,
13 hours ago
English,
13 hours ago
English,
1 day ago
English,
8 months ago
English,
8 months ago