Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace P06IntervalOfNumbers
- {
- class Program
- {
- static void Main(string[] args)
- {
- int num1 = int.Parse(Console.ReadLine());
- int num2 = int.Parse(Console.ReadLine());
- int max = 0;
- int min = 0;
- if (num1 >= num2)
- {
- max = num1;
- min = num2;
- } else
- {
- max = num2;
- min = num1;
- }
- for (int i = min; i <= max; i++)
- {
- Console.WriteLine(i);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment