Gargit

Conditional Statements Exercises Part 8

Jul 30th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. a. numPos > numNeg TRUE
  2. b. frstChar > scndChar FALSE
  3. c. !(numPos + numNeg) FALSE (0)
  4. d. (numPos == -30) || (numNeg == -55) TRUE (1)
  5. e. (frstPrice >= 4.1) && (frstPrice <= 9.9) TURE (1)
  6. f. !flag &&(scndChar <= ‘R’) FALSE (0)
  7. g. (numPos < 66) || (flag && numPos > 35) TRUE (1)
  8. h. ++numPos == 36 TRUE (1)
  9. i. numPos++ == 36 TRUE (1)
  10. j. (frstChar == ‘j’) || (frstChar == ‘J’) TRUE (1)
Advertisement
Add Comment
Please, Sign In to add comment