- 1

Rectangle or Square?

I am to make a code that draws shape patterns. And then, the program determines if its a square or rectangle; its peremeter; area; and, center coordinates. How do I find them? Below is my code: https://code.sololearn.com/cA22a198377a

29th Jun 2021, 1:22 AM
Brianna
1 Resposta
0
How will you deal with triangles when you ask for row and column? I think this way you can only check square or rectangle, where a square has same value of row and column.
29th Jun 2021, 2:05 AM
Ipang