Saved Bookmarks
| 1. |
In Westeros, fighting ground is rectangular in shape. King of Westeros, Bran Stark decides to build a fence around the ground. In order to help the construction workers to build a straight fence, he planned to place a thick rope around the ground. He decided to buy a rope of length that exactly fits the boundary. He also wanted to cover the entire ground with a thick carpet during the rainy season. The carpet should also be bought in such a way that it exactly covers the entire ground. Being the three eyed Raven, he was lost in his thoughts and requested your help. Can you please help Bran by writing a program to find the exact length of the rope and the exact area of carpet that is required? |
|
Answer» FENCING THE GROUNDcggh |
|