How to use modulus in pseudocode

We have tried every single way to use modulus but cant find out a way so please if you know guide regarding this issue it gives a syntax error though !

1 Like

Hey @Ryoumen , welcome to the forums! I have no idea what pseudocode is, but a quick Google search brought up this:

Hope this helps!


In most programming languages, % is the modulus operator, so you could, depending on the context, just use that. Alternatively, a semi-common convention is the first three letters capitalised (MOD, like ADD, SUB, MUL, DIV, etc), as the guide Nate linked to suggests.


@Ryoumen If my idea helped you, you can mark that as a Solution.

1 Like

MOD happens to be correct, but refer to the CIE spec to see the syntax for the “pseudocode” you’re using.