Advertisement
Guest User

Untitled

a guest
May 27th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. {
  2. Console.Write("How many Strings are you using?");
  3. string numberStrings = Console.ReadLine();
  4. int strings = int.Parse(numberStrings);
  5.  
  6. Console.Write("How many colors are you using?");
  7. string colorStrings = Console.ReadLine();
  8. int color = int.Parse(colorStrings);
  9.  
  10. {
  11. Console.Write("Use these colors:n");
  12. int i = color;
  13.  
  14. if (i > 0)
  15. {
  16. Random r = new Random();
  17. string[] colors = { "forest green", "red", "indigo", "navy", "lavender", "burgundy", "black", "grey", "white", "tan", "gold", "silver", "granite", "sky blue", "pale purple", "deep purple", "periwinkle", "lime green", "grass green", "dark brown", "medium brown", "canary yellow", "mustard yellow", "orange", "burnt orange", "Magenta", "rose pink", "pale pink", "turqouise", "pale turqouise" };
  18. Console.WriteLine(colors[r.Next(1, colors.Length)]);
  19. i--;
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement