martes, 28 de octubre de 2008

PRACTICA4PROBLEMA1

PRACTICA4PROBLEMA1
CASA DE CAMBIO


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace practica4problema2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_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 button2_Click(object sender, EventArgs e)
{
textBox1.Clear();
textBox2.Clear();
textBox3.Clear();
}
}
}
DIAGRAMA DE FLUJO

No hay comentarios: