using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
double T = 0.0;
double pob;
for (T = 1994; T <= 2010; T = T + 1)
{
pob = 4.8 * (1 + Math.Exp(0.02 * T));
listBox1.Items.Add("En el a¤o " + T + " la poblacion era igual a = " + pob);
}
}
private void button2_Click(object sender, EventArgs e)
{
listBox1.Items.Clear();
}
private void button3_Click(object sender, EventArgs e)
{
Close();
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
No hay comentarios:
Publicar un comentario