using System; public class Test { public static void Main() { try{ Console.WriteLine("Introduce dos números:"); int n1 = Convert.ToInt32(Console.ReadLine()); int n2 = Convert.ToInt32(Console.ReadLine()); if(n1 > n2){ for(int i=n1;i<=n2;i++) { Console.Write(i + " "); } }else{ for(int i=n2;i<=n1;i++){ Console.Write(i + " "); } } }catch (Exception e){ Console.WriteLine("Error: se esperaba un número"); } } }