Why not every Serial.print() are sent?

Hi,
I had some issues with receiving serial from Arduino Uno. I had written something like that:

  delay(50);
  Serial.println("Green button cliked");
  while (digitalRead(butAccept) == LOW);
  delay(50);

It printed nothing to my serial monitor.
I decided to chceck it and I wrote that:

  Serial.println("Green button cliked 1");
  delay(50);
  Serial.println("Green button cliked 2");
  while (digitalRead(butAccept) == LOW);
  Serial.println("Green button cliked 3");
  delay(50);
  Serial.println("Green button cliked 4");

My serial monitor printed only:
Green button clicked 3
Green button clicked 4
I wonder why it acts like that? Is it code or my fault? Or is it Arduino Uno fault?

P.S. Few lines of code before there is:

      delay(50);
      Serial.println("Yellow button cliked");
      k++;
      Serial.print("k=");
      Serial.println(k);
      while (digitalRead(butChange) == LOW);
      delay(50);

and Serial Monitor prints all that data.

Here is whole code:

int k;
const int butChange = 0;
const int butAccept = 1;

//0000000000000000000000000000000000000000000

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  Serial.println("Sketch started successfully");
  pinMode(butChange, INPUT_PULLUP);
  pinMode(butAccept, INPUT_PULLUP);
  delay(50);
  pinCreator();
}

// 00000000000000000000000000000000000000000000

void pinCreator()
{
  k = 0;
  while (digitalRead(butAccept) == HIGH)
  {
    if (digitalRead(butChange) == LOW)
    {
      delay(50);
      Serial.println("Yellow button cliked");
      k++;
      Serial.print("k=");
      Serial.println(k);
      while (digitalRead(butChange) == LOW);
      delay(50);
    }
  }
  delay(50);
  while (digitalRead(butAccept) == LOW);
  Serial.println("Green button cliked");
  delay(50);
  for (int i = 2; i <= k + 1 ; i++)
  {
    pinMode(i, OUTPUT);
  }
}

//000000000000000000000000000000000000000000000000

void loop() {
  // put your main code here, to run repeatedly:
  while (digitalRead(butAccept) == HIGH)
  {
    for (int i = 2; i <= k + 1; i++)
    {
      digitalWrite(i, HIGH);
      delay(250);
      digitalWrite(i, LOW);
    }
  }
  delay(50);
  while (digitalRead(butAccept) == LOW);
  delay(50);
  pinCreator();
}

EDIT: Added whole code.

I wonder why it acts like that? Is it code or my fault? Or is it Arduino Uno fault?

It's your fault! Now quit diddling people around and post your whole code. That code could not produce the results you say.

Mark

Moderator edit: mind your language - family site.

holmes4 means: "Hi, welcome to this forum, please have a look at this site: http://snippets-r-us.com/ "

Added whole code. It's just a improved version of blinking led sample project.

const int butChange = 0;
const int butAccept = 1;

Move your buttons off of the serial RX/TX pins.

Thanks.