Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
Python
JavaScript
Java
C++
age = 32 print("Age: " + str(age)) if age > 17: print('You are an adult!') #Python
const age = 32; console.log("Age: " + age); if (age > 17) { console.log('You are an adult!'); } //JavaScript
public class Main { public static void main(String[] args) { int age = 32; System.out.println("Age: " + age); if (age > 17) { System.out.println("You are an adult!"); } } } //Java
#include
#include
using namespace std; int main() { int age = 32; cout << "Age: " + to_string(age) + "\n"; if (age > 17) { cout << "You are an adult!"; } return 0; } //C++
Python result:
JavaScript result:
Java result:
CPP result:
Age: 32
You are an adult!
Age: 32
You are an adult!
Age: 32
You are an adult!
Age: 32
You are an adult!