Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Ex6_IntervalOfNumbers
- {
- using System;
- public class Program
- {
- public static void Main(string[] args)
- {
- int numOne = int.Parse(Console.ReadLine());
- int numTwo = int.Parse(Console.ReadLine());
- for (int i = Math.Min(numOne, numTwo); i <= Math.Max(numOne, numTwo); i++)
- {
- Console.WriteLine(i);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment