-2
static void Main(string[] args)
    {
        Random r = new Random();
        for (int i = 0; i < 20; i++)
        {
            Console.Write(" " + r.Next(10, 99));
        }
        Console.ReadKey();
    }

I have generated 20 random numbers between 10 - 99. Now how to reverse the result I got?

Filburt
  • 16,951
  • 12
  • 63
  • 111
  • 2
    You aren't storing the numbers anywhere so there's nothing to reverse. Create an array and populate that with the numbers first. You can then display the numbers from the array or reverse the array or whatever you want. – user18387401 May 11 '22 at 14:15
  • eg. https://dotnetfiddle.net/aNt20X – Rand Random May 11 '22 at 15:27

0 Answers0