error UUQUUQQÉ in serial monitor

const int PBT1 = 7;
const int PBT2 = 6;
const int LED1 = 13;
const int LED2 = 12;

int check = 2;

int state=0;
int state1=0;

void setup() {
  // put your setup code here, to run once:
pinMode(PBT1,INPUT);
pinMode(LED1,OUTPUT);
pinMode(PBT2,INPUT);
pinMode(LED2,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
Serial.begin(9600);
state = digitalRead(PBT1);
state1 = digitalRead(PBT2);

if (state==HIGH)
{check = 2;}

if (state1==HIGH)
{check = 3;}

else 
{ 
  if(state==2)
  {digitalWrite(LED1,HIGH);digitalWrite(LED2,LOW);}
  else if(state==3)
  {digitalWrite(LED1,LOW);digitalWrite(LED2,HIGH);}
  Serial.print(check);
}
}

In the above code of toggling 2 LEDs using two push buttons, There is this error of “QEQQEUÉ” when i am printing the status “check” on serial monitor.

Is this a hardware issue? am I using high resistors?
I don’t get this…
Inputs please…!!!

Serial.begin should be in the setup code as it only need calling once not in loop as you have it.
Also, as you describe the problem you might have the baud rate of the serial monitor set to the wrong number. It needs to match the number used in Serial.begin()

Thank you, yes now monitor is working,
However the flag is always being '3'.

Except when i push and hold on to the push button PBT1, it prints 2.

but once i release PBT1, '3' goes into flag.

It should be 2..

Where am i mistaken?

const int PBT1 = 7;
const int PBT2 = 3;
const int LED1 = 13;
const int LED2 = 12;

int check = 2;

int state=0;
int state1=0;

void setup() {
  // put your setup code here, to run once:
Serial.begin(9600);
pinMode(PBT1,INPUT);
pinMode(LED1,OUTPUT);
pinMode(PBT2,INPUT);
pinMode(LED2,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
state = digitalRead(PBT1);
state1 = digitalRead(PBT2);

if (state==HIGH)
{check = 2;}

else if (state1==HIGH)
{check = 3;}

else 
{ 
  if(state==2)
  {digitalWrite(LED1,HIGH); digitalWrite(LED2,LOW);}//
  else if(state==3)
  {digitalWrite(LED2,HIGH); digitalWrite(LED1,LOW);} //
  Serial.print(check);
}
}

This is working fine, printing 2 for PBT1 and 3 for PBT2.

Now the LED won't power ON.
Neither on pin 12 nor 13...!!

any ideas..?

MY BAD...!!! was checking for state instead of flag in the LED loop..
Thanks folks.
Done