sábado, 1 de noviembre de 2008

Practica 4 Problema 2

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_2
{
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 C, F;C = double.Parse(textBox1.Text);
F = (9.0 / 5.0) * C + 32.0;textBox2.Text=F.ToString();
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Clear();
textBox2.Clear();
}

No hay comentarios: