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