help with an activity

I need someone to help me answer this question because I'm new and I can't figure out how to write it.

Activity 1.1.2

Write code to compare two numbers. The code should check whether the first number is greater than or equal to the second and then display the result on the serial monitor.

Read this:
https://www.arduino.cc/reference/en/language/structure/comparison-operators/greaterthanorequalto/

Did you do activity 1.1.1 and 1.1.0? Were any course materials handed out?

aarg:
Read this:
https://www.arduino.cc/reference/en/language/structure/comparison-operators/greaterthanorequalto/

Did you do activity 1.1.1 and 1.1.0? Were any course materials handed out?

This was activity 1.1.1

Write a simple code that multiplies two numbers, 7.3 and 21. Then display the result in the serial monitor.

and no I didn't solve it.

ibrahim55:
I need someone to help me answer this question because I'm new and I can't figure out how to write it.

Activity 1.1.2

Write code to compare two numbers. The code should check whether the first number is greater than or equal to the second and then display the result on the serial monitor.

I still can't figure out how to write this, I have 30 minutes left before the deadline to submit the answer...

Am I missing something? Are you after something this simple?

if (a >= b){
Serial.println (“a >” b");
}
else {
Serial.println (“a < b”);
}

CrossRoads:
Am I missing something? Are you after something this simple?

if (a >= b){
Serial.println (“a >” b");
}
else {
Serial.println (“a < b”);
}

Yes! thank you very much.

ibrahim55:
I still can't figure out how to write this, I have 30 minutes left before the deadline to submit the answer...

So, basically, we're helping you cheat on an exam?