Ziomnexpl

Test_kolorow_2

Apr 10th, 2020
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.96 KB | None | 0 0
  1. using System;
  2. using System.Threading;
  3.  
  4. namespace Test_kolorow_2
  5. {
  6.     class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             Console.Write("H");
  11.             Thread.Sleep(100);
  12.             Console.ForegroundColor = ConsoleColor.Green;
  13.             Console.Write("e");
  14.             Thread.Sleep(100);
  15.             Console.ForegroundColor = ConsoleColor.Yellow;
  16.             Console.Write("l");
  17.             Thread.Sleep(100);
  18.             Console.ForegroundColor = ConsoleColor.Blue;
  19.             Console.Write("l");
  20.             Thread.Sleep(100);
  21.             Console.ForegroundColor = ConsoleColor.Magenta;
  22.             Console.Write("o");
  23.             Thread.Sleep(100);
  24.             Console.ForegroundColor = ConsoleColor.Cyan;
  25.             Console.Write(" ");
  26.             Thread.Sleep(100);
  27.             Console.ForegroundColor = ConsoleColor.Red;
  28.             Console.Write("World!");
  29.             Console.ReadKey();
  30.         }
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment