DETERMINAR SI UN NUMERO ES PAR O IMPAR
-----------------------------------------------------------------------------------------------------
SOLUCION
-----------------------------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int año;
Console.WriteLine("Ingrese año");
año = int.Parse(Console.ReadLine());
if (año % 4 == 0 && año % 100 != 0 || año % 400 == 0)
{
Console.WriteLine("El año {0} es bisiesto", año);
}
else
{
Console.WriteLine("El año {0} no es bisiesto", año);
}
Console.ReadLine();
Console.ReadKey();
}
}
}
editor y autor: yordy quispicusi perez