471,328 Members | 1,937 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,328 software developers and data experts.

logical AND operator question

105 100+
I need to rewrite these two lines of the following statement using the logical AND operator...what should it look like?

if grade >= 70 then
if grade < 80 then
printstudentname, grade
endif
endif
Oct 21 '07 #1
2 2700
ilikepython
844 Expert 512MB
I need to rewrite these two lines of the following statement using the logical AND operator...what should it look like?

if grade >= 70 then
if grade < 80 then
printstudentname, grade
endif
endif
Expand|Select|Wrap|Line Numbers
  1. if grade >= 70 and grade < 80:
  2.     print studentname, grade
  3.  
  4. // or...
  5.  
  6. if 70 <= grade < 80:
  7.     print studentname, grade
  8.  
Oct 21 '07 #2
jmarcrum
105 100+
thanks so much dude, it works great!!
Oct 21 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Nagib Abi Fadel | last post: by
80 posts views Thread by Christopher Benson-Manica | last post: by
8 posts views Thread by Chua Wen Ching | last post: by
23 posts views Thread by Cor | last post: by
2 posts views Thread by ThunderMusic | last post: by
9 posts views Thread by marko | last post: by
3 posts views Thread by gallows | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.