diff --git a/source/ch4_conditionals.ptx b/source/ch4_conditionals.ptx index 0b32d00..9aa166a 100644 --- a/source/ch4_conditionals.ptx +++ b/source/ch4_conditionals.ptx @@ -47,8 +47,9 @@ if score >= 90:
Using the <c>if</c> - <c>else</c> Statement -

The Java equivalent follows the same syntactical rules as before.

- +

shows how the if - elsestatement is written in Python.

+ + age = 16 if age >= 18: @@ -57,8 +58,11 @@ if score >= 90: print("You are not yet eligible to vote.") - - + + +

is Java equivalent that follows the same syntactical rules as before.

+ + public class IfElseExample { public static void main(String[] args) { @@ -72,6 +76,7 @@ if score >= 90: } +