示例#1
0
 public void Square(CalcModel valor) => Quadrado = Convert.ToInt32(Math.Pow(valor.Numero, 2));
示例#2
0
 public void Cube(CalcModel valor) => Cubo       = Convert.ToInt32(Math.Pow(valor.Numero, 3));
示例#3
0
 public void Double(CalcModel valor) => Dobro    = valor.Numero * 2;