+ 3

background color is not coming

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn class Program { static void Main(string[] args) { names = Console.ReadLine; while( names > 5 ) { new rnd = Random.next(names); Console.WriteLine(names); Console.WriteLine(rnd); Console.BackgroundColor = ConsoleColor.red; Console.ForegroundColor = ConsoleColor.blue; Console.Clear(); } } }

22nd Jul 2021, 4:33 AM
khushi ozha
khushi ozha - avatar
1 Respuesta
+ 7
The SoloLearn playground has limited capabilities. I have never seen a console code with colorful background or letters on SL. So you just have to accept that it won't work here.
22nd Jul 2021, 4:45 AM
Tibor Santa
Tibor Santa - avatar