![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-JcsR9h95YsdCofIEIseWfh_DM7y3t3FPTgwu6p_uf4R9ZjlTi9JZFzIUKPxowyStngd-o7V1w6s5WbScB0ZNAXr3_PAFdSSLEG4ArP22QoEhMQi3b7q6pQwQC8iWzHHFG95XceaanFp0/s320/Dibujo+8.bmp)
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_2_problema_1_visual
{
public partial class Form1 : Form
{
double nom;
double pro;
double c1, c2, c3, c4 ;
public Form1()
{
c1 = c2 = c3 = c4 = 0;
pro = 0;
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void tbnom_TextChanged(object sender, EventArgs e)
{
}
private void tbc1_TextChanged(object sender, EventArgs e)
{
}
private void btcalcular_Click(object sender, EventArgs e)
{
c1 = double.Parse(tbc1.Text);
c2 = double.Parse(tbc2.Text);
c3 = double.Parse(tbc3.Text);
c4 = double.Parse(tbc4.Text);
pro = (c4 + c3 + c2 + c1) / 4;
if (pro < text =" (">= 70)
{
tbpro.Text = ("pasaste ,algo bien sacaste: " +pro);
}
}
private void btlimpiar_Click(object sender, EventArgs e)
{
tbpro.Clear();
tbc4.Clear();
tbc3.Clear();
tbc2.Clear();
tbc1.Clear();
tbnom.Clear();
}
private void button1_Click(object sender, EventArgs e)
{
Close();
No hay comentarios:
Publicar un comentario