Help with a question i was given in computer science but do not have c# at home

What does the following code in a paint method produce?

int w = 100; for (int x = 0; x < 100; x = x + 10) { if (x % 20 == 0) { e.Graphics.FillRectangle(Brushes.LightBlue, x, x, w, w); } else { e.Graphics.FillRectangle(Brushes.Orange, x, x, w, w); } w = w - 20; 

I don't have C# on my home computer so if someone could run this code and tell me what it produces that would be extremely helpful

by Eice45 via /r/csharp

Leave a Reply