domingo, 11 de octubre de 2009

Practica 6.3 Visual c)

Pseudocodigo


[practica6.3cw.jpg]using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Practica_6_3_c__Windows
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
double t, y;

listBox1.Items.Add(" Valor de T \t\t Valor de Y");

for (t = 2; t <= 10; t = t + 0.5) { y = 2 * Math.Exp(0.8 * t); listBox1.Items.Add(t.ToString() + "\t\t\t" + y.ToString()); } } private void button2_Click(object sender, EventArgs e) { listBox1.Items.Clear(); } private void button3_Click(object sender, EventArgs e) { Close(); } private void listBox1_SelectedIndexChanged(object sender, EventArgs e) { } } }

No hay comentarios:

Publicar un comentario