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.
- Host: GitHub
- URL: https://github.com/chouaib-629/helloworld_alllanguage
- Owner: chouaib-629
- Created: 2024-03-31T15:48:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-19T10:20:19.000Z (almost 2 years ago)
- Last Synced: 2025-03-22T03:41:48.525Z (over 1 year ago)
- Topics: c, java, javascript, js, php, python, r
- Language: C++
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```