예제 #1
0
 private void btnEjecutar_Click(object sender, EventArgs e)
 {
     Funciones.Operaciones op = new Funciones.Operaciones();
     this.txtnombre.Text = op.saludo("Saul");
     double[] x = new double[] { 10, 12, 12, 13, 15, 17 };
     this.txtresultado.Text = op.suma(x).ToString();
 }
예제 #2
0
 protected void btnMostrar_Click(object sender, EventArgs e)
 {
     Funciones.Operaciones op = new Funciones.Operaciones();
     double[] x = new double[] { 2, 3324, 3, 24, 234, 4234, 31 };
     this.lblsaludos.Text   = op.saludo(this.Txtnombre.Text);
     this.Txtresultado.Text = op.suma(x).ToString();
 }
예제 #3
0
        static void Main(string[] args)
        {
            Funciones.Operaciones op = new Funciones.Operaciones();
            double[] y = new double[] { 10, 12, 12, 13, 15, 17 };
            // y[0]= 12; y[1] = 22; y[2] = 100; y[3] = 20; y[4] = 33;
            double x = op.suma(y);

            Console.WriteLine(op.saludo("Saúl"));
            Console.WriteLine("La suma del array es {0}", x);
            Console.ReadKey();
        }