Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _06_IntervalOfNumbers
- {
- class Program
- {
- static void Main(string[] args)
- {
- int One = int.Parse(Console.ReadLine());
- int Two = int.Parse(Console.ReadLine());
- int start = 0;
- int stop = 0;
- if (One > Two)
- {
- start = Two;
- stop = One;
- }
- else
- {
- start = One;
- stop = Two;
- }
- for (int i = start; i <= stop; i++)
- {
- Console.WriteLine(i);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment