fork(2) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. var t = 0;
  8. for (var i = 0; i < 5; i++)
  9. {
  10. t++;
  11. Console.WriteLine($"Yo! you been in this loop {t} times!");
  12. }
  13. }
  14. }
Success #stdin #stdout 0.04s 23864KB
stdin
Standard input is empty
stdout
Yo! you been in this loop 1 times!
Yo! you been in this loop 2 times!
Yo! you been in this loop 3 times!
Yo! you been in this loop 4 times!
Yo! you been in this loop 5 times!