Skip to content

amfilipovic/hello_world

Repository files navigation

Hello World

Overview

The "Hello World" repository contains implementations of the classic "Hello, World!" program in multiple programming languages. This project demonstrates basic syntax and output functions across a variety of programming environments.

Files

Each file contains the "Hello, World!" program in a different programming language:

  1. hello_world.bash: Bash script.
  2. hello_world.c: C programming language.
  3. hello_world.clj: Clojure programming language.
  4. hello_world.cpp: C++ programming language.
  5. hello_world.cs: C# programming language.
  6. hello_world.go: Go programming language.
  7. hello_world.java: Java programming language.
  8. hello_world.js: JavaScript programming language.
  9. hello_world.php: PHP programming language.
  10. hello_world.pl: Perl programming language.
  11. hello_world.ps1: PowerShell script.
  12. hello_world.py: Python programming language.
  13. hello_world.r: R programming language.
  14. hello_world.rb: Ruby programming language.
  15. hello_world.ts: TypeScript programming language.
  16. hello_world.vb: Visual Basic programming language.

Dependencies

No external dependencies are required for these files, aside from the standard runtime or compiler for each programming language.

Compiling and Running

For compiled languages, use the following instructions to compile and run the "Hello, World!" programs.

C

gcc -o hello_world hello_world.c
./hello_world

C++

g++ -o hello_world hello_world.cpp
./hello_world

C#

csc hello_world.cs
./hello_world.exe

For interpreted languages, simply run the files using the appropriate interpreter or runtime:

Python

python3 hello_world.py

JavaScript (Node.js)

node hello_world.js

Bash

bash hello_world.bash

Usage

Each program outputs the text Hello, World! to the console. This project serves as a simple introduction to programming in each of these languages, demonstrating the basic syntax for output and compiling (where necessary).

Contributions

Feel free to contribute implementations in additional languages or suggest improvements to existing implementations.