using System;using System.Collections.Generic;
using System.ComponentModel;
using System.Data;using System.Drawing;
using System.Text;
using System.Windows.Forms;namespace Practica_4_Problema_1
{
public partial class Form1 : Form{public Form1()
{
InitializeComponent();
}
private void Calcular_Click(object sender, EventArgs e){double pesos, dolar, cantD;
pesos = double.Parse(textBox2.Text);
dolar = double.Parse(textBox1.Text);
cantD = pesos / dolar;textBox3.Text = cantD.ToString();
}
private void CLEAR_Click(object sender, EventArgs e){textBox2.Clear();
textBox3.Clear();
}


No hay comentarios:
Publicar un comentario