Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
Python
JavaScript
Java
C++
a = 'Hello, ' b = 'World!' message = a + b print(message) #Python
const a = 'Hello, '; const b = 'World!'; const message = a + b; console.log(message); //JavaScript
public class Main { public static void main(String[] args) { String a = "Hello, "; String b = "World!"; String message = a + b; System.out.println(message); } } //Java
#include
#include
using namespace std; int main() { string a = "Hello, "; string b = "World!"; string message = a + b; cout << message; return 0; } //C++
Python result:
JavaScript result:
Java result:
CPP result:
Hello, World!
Hello, World!
Hello, World!
Hello, World!