domingo, 11 de octubre de 2009

Practica 6.3 Visual


Pseudocodigo

[practica6.3w.jpg]

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_Windows
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

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

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

for (x = 2; x <= 10; x = x + 0.2) { y = 2 * Math.Pow(x, 5) + 2 * Math.Pow(x, 3) + x; listBox1.Items.Add(x.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