Skip to content

t1gc05/Goodbye-World-in-40-coding-languages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 

Repository files navigation

Python:

print("Goodbye World")

Java:

System.out.println("Goodbye World");

JavaScript:

console.log("Goodbye World");

C:

#include <stdio.h> int main() { printf("Goodbye World"); return 0; }

C++:

#include int main() { std::cout << "Goodbye World"; return 0; }

Ruby:

puts "Goodbye World"

Visual Basic Script:

MsgBox "Hello World!"

Swift:

print("Goodbye World")

Go:

package main import "fmt" func main() { fmt.Println("Goodbye World") }

Rust:

fn main() { println!("Goodbye World"); }

Kotlin:

fun main() { println("Goodbye World") }

Perl:

print "Goodbye World\n";

Bash:

echo "Goodbye World"

Lua:

print("Goodbye World")

Powershell:

Write-Host "Goodbye World"

Dart:

void main() { print("Goodbye World"); }

Objective-C:

#import <Foundation/Foundation.h> int main() { NSLog(@"Goodbye World"); return 0; }

R:

cat("Goodbye World\n")

Julia:

println("Goodbye World")

Visual Basic:

Module HelloWorld Sub Main() Console.WriteLine("Goodbye World") End Sub End Module

SQL:

SELECT 'Goodbye World';

MATLAB:

disp('Goodbye World')

TypeScript:

console.log('Goodbye World');

Scala:

object HelloWorld extends App { println("Goodbye World") }

Groovy:

println "Goodbye World"

Prolog:

:- initialization(main). main :- write('Goodbye World'), nl.

Tcl:

puts "Goodbye World"

COBOL:

IDENTIFICATION DIVISION. PROGRAM-ID. GOODBYE. PROCEDURE DIVISION. DISPLAY "Goodbye World". STOP RUN.

Fortran:

PROGRAM GOODBYE WRITE(,) 'Goodbye World' END PROGRAM GOODBYE

Ada:

with Ada.Text_IO; use Ada.Text_IO; procedure Goodbye is begin Put_Line("Goodbye World"); end Goodbye;

Crystal:

puts "Goodbye World"

Elixir:

IO.puts("Goodbye World")

Haxe:

class Main { public static function main() { trace("Goodbye World"); } }

Smalltalk:

Transcript show: 'Goodbye World'

COOL:

class Main { main() : Object { out_string("Goodbye World\n"); return 0; }; };

OCaml:

print_string "Goodbye World\n"

VHDL:

library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity Goodbye is end entity Goodbye;

architecture rtl of Goodbye is begin process begin report "Goodbye World"; wait; end process; end architecture rtl;

Bash Script:

#!/bin/bash echo "Goodbye world!"

Brainfuck:

-[------->+<]>-.-[->+++++<]>++.++++++++.+++++.------------.-[--->+<]>---.+++++[->+++<]>++.---------------.++++++++.++++++++.------------------.-[--->+<]>---.+++++++++++++.+++.--------------.+++.++[->+++<]>.--[--->+<]>-.++++++++.+++++.++.-------------.+++++++++++++.++++++++.----.-[--->+<]>--.++++.------.--------.++++++++++.-----.++++++++.+++++.++++++++++.---------.+.```

Intercal:

PLEASE DO ,1 <- #13 DO ,1 SUB #1 <- #234 DO ,1 SUB #2 <- #112 DO ,1 SUB #3 <- #112 DO ,1 SUB #4 <- #0 DO ,1 SUB #5 <- #64 DO ,1 SUB #6 <- #194 DO ,1 SUB #7 <- #48 PLEASE READ OUT ,1 PLEASE GIVE UP

LOLCODE:

HAI CAN HAS STDIO? VISIBLE "Goodbye World" KTHXBYE

Whitespace:

\t \t\t \t \t
\n
\t\t \t \t\t \n \t \t
\n
\t
\n
\t\t \t \t
\n
\t\t \t \t\t \t\t \n
\t
\n
\t
\n
\t
\n
\t
\n
\t\t \t \t\t \t \t
\n
\t
\n
\t
\n
\t
\n
\t
\n
\t\t \t \t
\n
\t\t \t \n
\t
\n
\t\t \t \t
\n
\t\t \t \n
\t
\n

About

A repository for Goodbye World in 40 coding languages. PS: This is still being updated/some was provided through ChatGPT.

Topics

Resources

Stars

Watchers

Forks

Contributors