int Student1_Marks = 32;
int Student2_Marks = 20;
int led_pin_1 =3;
int led_pin_2 =4;
void setup() {
Serial.begin(9600);
pinMode (led_pin_1 , OUTPUT);
pinMode (led_pin_2 , OUTPUT);
if (Student1_Marks > 33){
Serial.println("The student1 marks is greater than 33. He passed the exam.");
digitalWrite(led_pin_2, HIGH);
delay(2500);
}
if (Student1_Marks <= 33){
Serial.println("The student1 marks is less than or eqaul to 33. He failed the exam.");
}
if (Student2_Marks > 33){
Serial.println("The student2 marks is greater than 33. He passed the exam.");
}
if (Student2_Marks <= 33){
Serial.println("The student2 marks is less than or eqaul to 33. He failed the exam.");
digitalWrite(led_pin_1 , HIGH);
delay(2000);
}
delay(2500);
digitalWrite(led_pin_1 ,LOW);
digitalWrite(led_pin_2 ,LOW);
}
void loop() {
}