Skip to content
>_ Coders Rock
PracticePlaygroundBlogAbout Learn to Write Code

Practice / Conditions & Branching

Continuing from Learn to Write Code -- this set practices the lesson you just read.

Set 05

Conditions & Branching

Practice if, else-if, and else logic by writing programs that pick one branch out of several.

conditionifelsebranchboolean

Taught on Learn to Write Code. Read the lesson first if any of this is new.

Ticket price

Choose one of three prices from one number.

Both must be true

Combine two questions into one decision.

Coders Rock

Free coding practice that runs entirely in your browser. No account, no streaks, no leaderboard -- practice a concept, see it run, then go build something real with it.

Practice

All challenges Playground Blog

Elsewhere

About Spread the word Learn to Write Code Exteran Studios
© 2026 CodersRock.com, an exteran studios site. Your code runs in your browser and is never sent anywhere. Privacy Policy | Terms of Use