Hi guys, im new to arduino and i have to do a code where someone will write a grade and the serial will tell if the grade is enough to pass, but the code needs to have if and else, but the code is just telling that the grade isnt enough to pass, even if i type a number like 10.
void setup() {
Serial.begin(9600);
}
char rx_byte = 0;
void loop() {
if (Serial.available() > 0) {
rx_byte = Serial.read();
if (rx_byte <= 5,9)
{
Serial.println("Did not pass");
}else if (rx_byte >= 6)
Serial.println("Has passed");