PROGRAMA ESCRITO,. PARA EL CALCULO DE PIES A METROS DE LA FORMA VISUAL,. SIN PEDIR DATO ALGUNO,.SOLO DESPLIEGA LOS INCEREMENTOS DE PIES ,. Y EL RESULATADO EN METROS.
A CONTINAUCION EL PROGRAMA EN VISUAL,.
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 pies, m;
pies = 2.0;
listBox1.Items.Add(" Pies a metros ");
while (pies <= 20.0) { m = pies / 3.28;
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 pies, m;
pies = 2.0;
listBox1.Items.Add(" Pies a metros ");
while (pies <= 20.0) { m = pies / 3.28;
listBox1.Items.Add("Pies " + pies.ToString() + " = " + m.ToString() + " metros ");
pies = pies + 2;
}
}
private void button2_Click(object sender, EventArgs e)
{
listBox1.Items.Clear();
}
}
}
No hay comentarios:
Publicar un comentario