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