Back to Course

Introduction to C++

0% Complete
0/0 Steps
  1. C++: Basics
    5Topics
    |
    6 Quizzes
  2. C++: Compilation and Execution
    5Topics
    |
    6 Quizzes
  3. C++: Variables
    9Topics
    |
    10 Quizzes
  4. C++: Conditions Operators
    5Topics
    |
    6 Quizzes
  5. C++: Logical Operators
    3Topics
    |
    4 Quizzes
  6. C++: Loops and Errors
    8Topics
    |
    9 Quizzes
  7. C++: Vectors
    4Topics
    |
    3 Quizzes
Lesson 4, Topic 2
In Progress

C++: Relational Operators

Yasin Cakal 9 Nov 2021
Lesson Progress
0% Complete

Sometimes, we need to write conditions using other operators like relational operators. They help increase the range of outputs that a user can input and increase the variety a program can be used for. Some of the relational operators that can be used for conditions are:

  • != not equal to
  • == equal to
  • < less than
  • <= less than or equal to
  • > greater than
  • >= greater than or equal to

We used the >= relational operator in the previous program to put a condition to mark students receiving marks greater than or equal to 60 have passed the exam!

Responses

Leave a Reply

%d bloggers like this: