Comparison and logical operators

We know how to use built-in methods as well as define our own methods. We also know how to take input from the user and assign it to a variable for storage (and reuse) or pass it as further input to a method. We also know how to output something on the screen for the user. But we can only write sequential programs so far, where the computer fetches and executes one line of our code after another, from the first executable line of the main method to the last, in a strictly sequential order.

Create a free account to access the full course.

Continue your learning journey with a 14-day free trial.

By signing up, you agree to Educative's Terms of Service and Privacy Policy