+ 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(); } } }
1 Answer
+ 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.