Pseudo Coding in a Maths Classroom?

Sure ... don't get worried about it .. we do it all the time when we program.  It can just looks like coding in the language that students might use, but without worrying about the rigours of missing the semicolon!!

Of course the student must understand how the IF works.

Here is what Wikipedia has to say about it!! (in November '23)