Está en la página 1de 1

using System;

using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Anthonysales
{
class Program
{
static void Main(string[] args)
{
int dato1 = 0, dato2 = 0;
string texto;
Console.WriteLine("Por favor ingrese el primer valor");
texto = Console.ReadLine();
dato1 = Convert.ToInt32(texto);
Console.WriteLine("Ahora ingrese el segundo valor");
texto = Console.ReadLine();
dato2 = Convert.ToInt32(texto);
if (dato1 < dato2)
if (dato1 == dato2)
Console.WriteLine("El dato 1 es igual al dato 2");
else
Console.WriteLine("El dato 1 es menor al dato 2");
else
Console.WriteLine("El dato 1 es mayor al dato 2");
Console.ReadKey();

}
}
}

También podría gustarte