fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string[] numArr = Console.ReadLine().Split('-');
  8.  
  9. int[] nums = new int[numArr.Length];
  10. for (int i = 0; i < numArr.Length; i++)
  11. {
  12. nums[i] = Convert.ToInt32(numArr[i]);
  13. }
  14. Array.Sort(nums);
  15. for (int n = nums[0]; n <= nums[nums.Length - 1]; n++)
  16. {
  17. Console.WriteLine(n);
  18. }
  19. }
  20. }
Success #stdin #stdout 0.04s 33728KB
stdin
48030-48039
stdout
48030
48031
48032
48033
48034
48035
48036
48037
48038
48039