Documentos de Académico
Documentos de Profesional
Documentos de Cultura
04/OCT/2022
EJERCIO 1: Ciclos Iterativos For
CODIGO
private void Ejecutar_Click(object sender, EventArgs e)
{
try
{
this.ForeColor = Color.Red;
this.BackColor = Color.LightGreen;
listBox1.Items.Clear();
int cantidad = Convert.ToInt32(txtCantidad.Text);
string caracter = "*";
for (int i = 0; i < cantidad; i++)
{
listBox1.Items.Add(caracter);
caracter += "*";
}
}
catch (Exception)
{
04/OCT/2022
}
}
catch (Exception)
{
04/OCT/2022
FORM Screenshot
04/OCT/2022
04/OCT/2022