Exercises: Logic

Premium Lesson

This is a premium course. To view and assign premium course, you must upgrade your account

Upgrade Now

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

Track

Introduction to Programming

Account

MVCode

Rank

Coder

Created By

jamie

Exercises: Logic Prereqs