Gob's Program serves as a demonstration of various important concepts in programming such as text formatting, processing user input and infinite loops. It has been implemented in as many languages as possible to serve as a useful resource for beginners and advanced programmers alike.
For information on contributing, please refer to the Gob's Program Wiki.
Gob's Program Project 10th Anniversary Special Edition!
Run Gob's Program interactively on a web-site page!
Or type it into your BBC Micro at home if you want, do whatever, I'm not your mum.
$ g++ gobsprogram.cpp -o program
$ ./program
$ ./gobsprogram.py
OR
$ python gobsprogram.py
double click it while using windows
$ ./gobsprogram.pl
OR
$ perl gobsprogram.pl
$ ./gobsprogram.rb
OR
$ ruby gobsprogram.rb
$ javac GobsProgram.java
$ java GobsProgram
$ emojicodec gobsprogram.🍇
$ ./gobsprogram
PowerShell 5:
PS C:\Users\User> Set-ExecutionPolicy -Scope Process Unrestricted
PS C:\Users\User> .\gobsprogram.ps1
PowerShell 6 (Windows):
PS C:\Users\User> Set-ExecutionPolicy -Scope Process Unrestricted
PS C:\Users\User> Unblock-File gobsprogram-6.ps1
PS C:\Users\User> .\gobsprogram-6.ps1
PowerShell 6 (not Windows) (lol harder):
$ pwsh
PS /home/user> .\gobsprogram-6.ps1
$ go run gobsprogram.go
$ php gobsprogram.php
scalac gobsprogram.scala
scala GobsProgram
rustc gobsprogram.rs
./gobsprogram