An open API service indexing awesome lists of open source software.

https://github.com/chouaib-629/helloworld_alllanguage

This repository contains "Hello World" examples in various programming languages.
https://github.com/chouaib-629/helloworld_alllanguage

c java javascript js php python r

Last synced: 5 months ago
JSON representation

This repository contains "Hello World" examples in various programming languages.

Awesome Lists containing this project

README

          

# Running Hello World in Different Programming Languages

This repository contains "Hello World" examples in various programming languages. Here's how to run each one:

## C

To compile and run the C program, use the following commands:

```bash
gcc hello.c -o hello
./hello
```

## C++

To compile and run the C++ program, use the following commands:

```bash
g++ hello.cpp -o hello
./hello
```

## Java

To compile and run the Java program, use the following commands:

```bash
javac hello.java
java hello
```

## Rust

To compile and run the Rust program, use the following commands:

```bash
rustc hello.rs
./hello
```

## Python

To run the Python script, use the following command:

```bash
python hello.py
```

## JavaScript

To run the JavaScript script, use the following command:

```bash
node hello.js
```

## R

To run the R script, use the following command:

```bash
Rscript hello.r
```

## PHP

To run the PHP script, use the following command:

```bash
php hello.php
```