Question: Using C# Write a loop that displays all numbers between x and y, inclusive, smallest to largest. Assume that x will be smaller than y.
Using C#
Write a loop that displays all numbers between x and y, inclusive, smallest to largest.
Assume that x will be smaller than y.
Use Console.WriteLine to output each number.
You do not need to create the variables x and y or give them values. The tester will do this for you.
Your program will be tested multiple times using different values for the variables. To pass the challenge, all of the tests must succeed.
blueprint below
using System;
namespace LoopOverAll
{
class Program
{
public void Run(int x, int y)
{
/** WRITE YOUR SOLUTION HERE **/
}
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
