Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. while (true)
  2. {
  3. for (int vertikaal = 1; vertikaal <= aantallijnen; vertikaal++)
  4. {
  5. for (int horizontaal = 1; horizontaal <= vertikaal; horizontaal++)
  6. {
  7. Console.BackgroundColor = ConsoleColor.Magenta;
  8. Console.Write(karakter);
  9.  
  10. }
  11. Console.WriteLine();
  12. Thread.Sleep(vertraging);
  13. }
  14. for (int i = aantallijnen - 1; i >= 1; i--)
  15. {
  16. for (int j = 1; j <= 1 * i; j++)
  17. {
  18. Console.BackgroundColor = ConsoleColor.DarkYellow;
  19. Console.Write(karakter);
  20.  
  21. }
  22. Console.WriteLine();
  23. Thread.Sleep(vertraging);
  24.  
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement