If-else Statement

In this lesson, you will get acquainted with the if-else statement in C++.

Introduction

Suppose you can buy a watch for your friend if you have at least $20. Otherwise, you can gift them a pen.

Get hands-on with 1200+ tech skills courses.