Strictly

Blackarrow01799 -  
 Blackarrow01799 -
Hello,
Do you know how to ask in a program for the output number to be strictly positive?

Thank you in advance.

1 answer

  1. quent217 Posted messages 424 Status Member 348
     
    Hello,
    I'm not sure I fully understood your request. If you want to ask a user for a strictly positive number, you can create a loop that keeps asking for the number as long as it is negative:

    Do
    "Number "?->A
    LpWhile A<=0

    "<=" represents the less than or equal to sign.
    0
    1. Blackarrow01799
       
      Quent217 thank you for your response. It's not what I was expecting, but I managed to find it. Thank you.
      0