Exemplo n.º 1
0
 public int GetPermiter(Rectangle rect)
 {
     return SimpleCalculator.Add(
         SimpleCalculator.Multiply(2, rect.Length),
         SimpleCalculator.Multiply(2, rect.Width));
 }
Exemplo n.º 2
0
 public int GetArea(Rectangle rect)
 {
     return SimpleCalculator.Multiply(rect.Length, rect.Width);
 }