i
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace practica_4._4
{
class Program
{
static void Main(string[] args)
{
double pies, metros;
pies = 2.0;
Console.WriteLine("pies \t \t metros");
while (pies <= 20.0) { metros = pies / 3.28; Console.WriteLine("{0} \t \t {1}", pies, metros); pies = pies + 2; Console.ReadKey(); } } } }
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 practica_4._4
{
public partial class Form1 : Form
{
double pies, metros;
public Form1()
{
pies = 2.0;
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
listBox1.Items.Add("Pies Metros");
while(pies<=20.0) { metros=pies/3.28; listBox1.Items.Add(pies.ToString()+" " + metros.ToString()); pies=pies+2; } } 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) { } private void Form1_Load(object sender, EventArgs e) { } } }
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace practica_4._4
{
class Program
{
static void Main(string[] args)
{
double pies, metros;
pies = 2.0;
Console.WriteLine("pies \t \t metros");
while (pies <= 20.0) { metros = pies / 3.28; Console.WriteLine("{0} \t \t {1}", pies, metros); pies = pies + 2; Console.ReadKey(); } } } }
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 practica_4._4
{
public partial class Form1 : Form
{
double pies, metros;
public Form1()
{
pies = 2.0;
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
listBox1.Items.Add("Pies Metros");
while(pies<=20.0) { metros=pies/3.28; listBox1.Items.Add(pies.ToString()+" " + metros.ToString()); pies=pies+2; } } 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) { } private void Form1_Load(object sender, EventArgs e) { } } }
No hay comentarios:
Publicar un comentario