Documentos de Académico
Documentos de Profesional
Documentos de Cultura
using System;
{
class Program
{
static void Main(string[] args)
{
int numero;
Console.Write("Digite el valor del numero: ");
numero = Convert.ToInt32(Console.ReadLine());
do
{
if (numero % 2 == 0)
Console.WriteLine(numero);
}
numero--;
while (numero > 0) ;
Console.ReadKey();
}
}
}
2. QUE PIDA UN NUMERO Y MUESTRE LA TABLA DEL 1 AL 12 DE DICHO
NUMERO.
{
class Program
{
static void Main(string[] args)
{
int i, tabla1, tabla2;
}
}
}
3. QUE PREGUNTE LA CANTIDAD DE MONTOS, PIDA DICHOS MONTOS Y
CALCULE LA SUMATORIA Y EL PROMEDIO.
{
class Program
{
static void Main(string[] args)
{
int monto, cantidad, promedio;
}
}
}
4. QUE PIDA UN NOMBRE Y SE REPITA MIENTRAS NO SEA "JOSE" O LA
CANTIDAD DE NOMBRE INGRESADO SEA MENOR QUE 7.
{
class Program
{
static void Main(string[] args)
{
string Jose;
while (Jose <= 7)
{
Console.Write("Ingrese nombre: ");
Jose = string.Empty(Console.ReadLine());
}
Console.ReadKey();
}
}
}