Radicación




using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace numero21
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
int radicando, indice, raiz;

private void button2_Click(object sender, EventArgs e)
{
Application.Exit();
}

private void textBox1_TextChanged(object sender, EventArgs e)
{
radicando = int.Parse(textBox1.Text);
}

private void textBox2_TextChanged(object sender, EventArgs e)
{
indice = int.Parse(textBox2.Text);
}




private void button1_Click(object sender, EventArgs e)
{
raiz = (short)Math.Pow(radicando, (1 / (double)indice));
textBox3.Text = raiz.ToString();
}
}
}


No hay comentarios:

Publicar un comentario

Nota: solo los miembros de este blog pueden publicar comentarios.