calcular area de un rectangulo

1
CALCULAR AREA DE UN RECTANGULO using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace area_del_triangulo_hernadez_hernandez { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { } private void label1_Click(object sender, EventArgs e) { } private void label2_Click(object sender, EventArgs e) { } private void btnca_Click(object sender, EventArgs e) { float Base, Altura, Area; Base = float.Parse(txtbase.Text); Altura = float.Parse(txtaltura.Text); Area = Base * Altura; txtarea.Text = Convert.ToString(Area); } } }

Upload: juan-karloz

Post on 10-Sep-2015

215 views

Category:

Documents


0 download

DESCRIPTION

programacion de area

TRANSCRIPT

  • CALCULAR AREA DE UN RECTANGULO

    using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace area_del_triangulo_hernadez_hernandez{

    public partial class Form1 : Form{

    public Form1(){

    InitializeComponent();}private void Form1_Load(object sender, EventArgs e){

    }private void label1_Click(object sender, EventArgs e){}private void label2_Click(object sender, EventArgs e){}private void btnca_Click(object sender, EventArgs e){

    float Base, Altura, Area;Base = float.Parse(txtbase.Text);Altura = float.Parse(txtaltura.Text);Area = Base * Altura;txtarea.Text = Convert.ToString(Area);

    }}

    }