void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
int x =79;//คะเเนนสอบ 0-100
if(x<49){
Serial.println("Your grad is 0");
}else if(x<=54){
Serial.println("Your grad is 1");
}else if(x<=59){
Serial.println("Your grad is 1.5");
}else if(x<=64){
Serial.println("Your grad is 2");
}else if(x<=69){
Serial.println("Your grad is 2.5");
}else if(x<=74){
Serial.println("Your grad is 3");
}else if(x<=79){
Serial.println("Your grad is 3.5");
}else if(x<=100){
Serial.println("Your grad is 3.5");
}
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}