mercredi 15 juin 2016

If-Else conditions with APL?

So, I'm wondering/asking; Is it possible to do an If-Statement in APL? If so how?

Here's my code

    'Please enter a number to count to: ' 
 number ←⎕ 
 ⍳number

How do I get an if-statement to where if the user inputs a number over 100 it will print out "too high" and end; or if it's 100 or under then it will just continue?

Thanks!

Aucun commentaire:

Enregistrer un commentaire