fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string string1 = "quick brown fox jumps over the lazy dog";
  8. const int sqlMax = 8;
  9. while (true) {
  10. if (string1.Length > sqlMax) {
  11. Console.WriteLine("'{0}'", string1.Substring(0, sqlMax));
  12. string1 = string1.Substring(sqlMax);
  13. } else {
  14. Console.WriteLine("'{0}'", string1);
  15. break;
  16. }
  17. }
  18.  
  19. }
  20. }
Success #stdin #stdout 0.03s 33864KB
stdin
Standard input is empty
stdout
'quick br'
'own fox '
'jumps ov'
'er the l'
'azy dog'