Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
Python
JavaScript
Java
C++
temperature = 25 print('Temperature: ' + str(temperature) + '°C') if temperature > 20: print('It is warm') else: print('It is not warm') #Python
const temperature = 25; console.log('Temperature: ' + temperature + '°C'); if (temperature > 20) { console.log('It is warm'); } else { console.log('It is not warm'); } //JavaScript
public class Main { public static void main(String[] args) { int temperature = 25; System.out.println("Temperature: " + temperature + "°C"); if (temperature > 20) { System.out.println("It is warm"); } else { System.out.println("It is not warm"); } } } //Java
#include
#include
using namespace std; int main() { int temperature = 25; cout << "Temperature: " + to_string(temperature) + "°C\n"; if (temperature > 20) { cout << "It is warm\n"; } else { cout << "It is not warm\n"; } return 0; } //C++
Python result:
JavaScript result:
Java result:
CPP result:
Temperature: 25°C
It is warm
Temperature: 25°C
It is warm
Temperature: 25°C
It is warm
Temperature: 25°C
It is warm