Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // part 1 - a conditional in parentheses
- // part 2 - a true part (if the condition is true)
- // part 3 (optional) - an else part
- if (score >= 70)
- grade = 'P';
- else
- grade = 'F';
- a < b //: is a less than b?
- a > b //: is a greater than b
- a <= b //: is a less than or equal to b
- a >= b //: is a greater than or equal to b
- a == b //: is a equal to b
- a != b //: is a not equal to b
- ///////////////////////////
- a: 5,
- b: 6,
- c: 7,
- c // True
- 0 // False
- a < b // True
- a == b // False
- a != 6 // True
- c >= 7 //True
- (a+b) > c // True
- !(a<b) // False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement