int k = 1;
while (k <= 10)
  {
    Console.WriteLine(k);
    k++;
   }