Code for programming

10 pts.
Tags:
Programming
What's wrong with my code for programming?
100 IF(I<20 and I>101 THEN 130
110 PRINT "OUT OF RANGE"
120 END
130 DB =DB* I
140 I = I + 1
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

IF(I<20 and I>101

This is an impossible situation.

I cannot be less than 20 AND greater that 101 at the same time.

You may want to change AND to OR

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • ToddN2000
    You may also want to close the parenthesis beside using CharlieBrowns fix.

    IF(I<20 and I>101)
    131,500 pointsBadges:
    report
  • carlosdl
    There might be more errors, but we don't know because we don't know the language you are using and the goal of the code.
    84,640 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: