Replace "*" with a sequence of "R, G, B" in C# "Making a Pyramid"
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void DrawPyramid(int n) { for (int i=1; i<=n; i++) { for (int j=i; j<=n; j++) { Console.Write(" "); } for (int k=1; k<=2*i-1; k++) { Console.Write("*"+" "); } Console.WriteLine(); } } static void Main(string[] args) { DrawPyramid(5); } } } This is the code from "Making a Pyramid" in the C# tutorial. I want to hack it so that instead of printing "*" to draw the pyramid, it prints the characters R, G, and B in sequence to the defined DrawPyramid integer. I've had the idea to either make a method that replaces all instances of "*", and tried making a class called RedGreenBlue that would be defined by what the previous char is. This is only my second day trying to learn programming and I really wana figure this out but everything I do blasts my IDE with red circles. Please help!