using System;
namespace TresNombres
{
class Program
{
static void Main(string[] args)
{
int[] numbers;
int mayor, menor;
numbers = new numbers[3];
Console.WriteLine("Insert first number: ");
numbers[0] = (Console.ReadLine());
Console.WriteLine("Insert second number: ");
numbers[1] = int.Parse(Console.ReadLine());
Console.WriteLine("Insert third number: ");
numbers[2] = int.Parse(Console.ReadLine());
mayor = numbers[0];
menor = numbers[0];
for (i = 0; i < n; i++)
{
if(mayor < numbers[i])
{
mayor = numbers[i];
}else{
menor = numbers[i];
}
}
}
}
}
MJackson22
- 69
- 4