Está en la página 1de 1

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)
{
Console.WriteLine("Bienvenido, a continuacion debera ingresar su edad
para detectar su rango");
int edad = Int32.Parse(Console.ReadLine());
if (edad < 12) Console.WriteLine("Usted es un niño");
else if (edad < 18) Console.WriteLine("Usted es un adolecente");
else if (edad < 50) Console.WriteLine("Usted es un adulto");
else if (edad < 90) Console.WriteLine("Usted es un adulto mayor");
else Console.WriteLine("Usted esta en un rango despues de adulto
mayor");
Console.WriteLine("Presione enter para salir");
Console.ReadKey();
}
}
}

También podría gustarte