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