Exercises: Logic

A collection of exercises using boolean logic

Course Items

Introduction

Learn to use booleans (true and false) and their operators (&&, ||, !, ===, <, >, >=, <=, !=)

&& and ||

Use && for "and". Use || for "or"

If/else

We can use else to decide what to do if the conditional is false

Order of boolean operations

When computing long strings of logic we always combine && before ||

Leap year

Calculate whether a given year is or is not a leap year

Exercises: Logic Info

Account

MVCode Clubs

Rank

Coder

Created By

Newprofile jamie

Exercises: Logic Prereqs