![:P :P](https://forum.elhacker.net/Smileys/navidad/tongue.gif)
![:P :P](https://forum.elhacker.net/Smileys/navidad/tongue.gif)
![:huh: :huh:](https://forum.elhacker.net/Smileys/navidad/huh.gif)
gracias saludos
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menúusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace proyecto8
{
class Program
{
static void Main(string[] args)
{
int p, d, c;
Console.ForegroundColor = ConsoleColor.Green;
Console.Write("\t\tConvercion de dolares a pesos ");
Console.Write("\n\nintroduce dolares:");
d = int.Parse(Console.ReadLine());//introduce valor
Console.Write("\n\nIntroduce tipo de cambio en pesos:");
p = int.Parse(Console.ReadLine());//introduce valor
c = d * p;//operacion
Console.WriteLine("\n\nEl cambio es : {0:c}",c);//despliegue
Console.Read();
}
}
}
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_8
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button3_Click(object sender, EventArgs e)
{
int d, p, res;
d = System.Int32.Parse(txtd.Text);
p = System.Int32.Parse(txtp.Text);
res = d * p;
//MEFALTA ESTA PARTE :p
txtconver.Text =
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace cdopen
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
[DllImport("winmm.dll", EntryPoint = "mciSendStringA")]
public static extern void mciSendStringA(string lpstrCommand, string lpstrReturnString, long uReturnLength, long hwndCallback);
private void timer1_Tick(object sender, EventArgs e)
{
}
private void Form1_Load(object sender, EventArgs e)
{
string rt = "";
{ mciSendStringA("set CDAudio door open", rt, 127, 0); }
{ mciSendStringA("set CDAudio door closed", rt, 127, 0); }
}
}
}
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 programameter30catacteres
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int c,n, p=0, i=0,r;
n = System.Int32.Parse(textBox1.Text);
for (c = 1; c > 3; c++)
{
r = n % 2;
if (r == 0)
{
p += 1;
textBox2.Text = p.ToString ();
}
else
i += 1;
textBox3.Text = i.ToString();
}
}
}
}
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 desplegardiasdelasemana
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int cont;
for(cont = 1;cont <8;cont ++)
if(cont == 1)
{
textBox1.Text="lunes";
}
if (cont == 2)
{
textBox1.Text="Martes";
}
if (cont ==3)
{
textBox1.Text="Miercoles";
}
}
}
}
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 WindowsFormsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
//variables
int n1;
int n2;
//Asignacion de valores alas variables
n1 = System.Int32.Parse(textBox1.Text);
n2 = System.Int32.Parse(textBox2.Text);
//condicion
if (n1 > n2)
textBox4.Text = n1.ToString();
else
textBox4.Text = n2.ToString();
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Text = "";
textBox2.Text = "";
textBox4.Text = "";
textBox1.Focus();
}
}
}
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int cont = 0;
//despliega resultados
if (cont == 1)
textBox1.Text = "lunes";
if (cont == 2)
textBox1.Text = "Martes";
if (cont == 3)
textBox1.Text = "Miercoles";
if (cont == 4)
textBox1.Text = "Jueves";
if (cont == 5)
textBox1.Text = "Viernes";
if (cont == 6)
textBox1.Text = "Sabado";
if (cont == 7)
textBox1.Text = "Domingo";
}
}
}