Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
Python
JavaScript
Java
C++
is_student = True age = 21 if is_student and (age < 18 or age >= 18): print("You can borrow a book from the university library") #Python
const is_student = true const age = 21 if (is_student && (age < 18 || age >= 18)) { console.log("You can borrow a book from the university library"); } //JavaScript
public class Main { public static void main(String[] args) { boolean is_student = true; int age = 21; if (is_student && (age < 18 || age >= 18)) { System.out.println("You can borrow a book from the university library"); } } } //Java
#include
using namespace std; int main() { bool is_student = true; int age = 21; if (is_student && (age < 18 || age >= 18)) { cout << "You can borrow a book from the university library"; } return 0; } //C++
Python result:
JavaScript result:
Java result:
CPP result:
You can borrow a book from the university library
You can borrow a book from the university library
You can borrow a book from the university library
You can borrow a book from the university library