![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifVMhiXSGWs0_Y1Lk2nc2eI93oHCEWGndb5GafOIP1e7IEASJRpdoZPXBhtZsctXYc0TKjXt3tWljT3JH3HJYlQ4d_P-nXo8WsubMCv_a-0KoA-KtlcAL2VTdZhRtzqArXDfxyrIPOmDVj/s320/viusual.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 WindowsFormsApplication1
{
public partial class Form1 : Form
{
int N, M, P, RS;
public Form1()
{
N = M = P = RS = 0;
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
N=int.Parse(textBox1.Text);
M=int.Parse(textBox2.Text);
P = int.Parse(textBox3.Text);
RS = N * 56 + M * 33 + P * 15;
textBox4.Text = (" La resistencia total en serie es ") + RS.ToString();
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Clear();
textBox2.Clear();
textBox3.Clear();
textBox4.Clear();
}
private void button3_Click(object sender, EventArgs e)
{
Close();
}
}
}
a continuacion el diagrama de flujo ,. que por algunas raones,. no se publico,. pero ya esta aqui ,. es tambien una solucion del ejerccio.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0gS2HbLo9kREbcs6eNWMQl7kFSZLTDcyubEm4ATlEqN55MpWlCFNTUqEMEGRuA15XCRKkUJN6_vw3YYYDMwb6WpFChtlbQr4P1tR7BJgAqIaF7d11ssXVCW7aIU-yk2c2F_YTlsI7g518/s400/PRACTICA+1.1.bmp)
No hay comentarios:
Publicar un comentario