Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

added 27 characters in body
Source Link
Mukundan314
  • 13.7k
  • 1
  • 19
  • 62

Groovy, 28 bytes

/**/print"Hello, World!"/**/

Try it online!


Squirrel, 30 bytes

/**/print("Hello, World!")/**/

Try it online!


Swift, 30 bytes

/**/print("Hello, World!")/**/

Try it online!


JavaScript (Node.js), 36 bytes

/**/console.log("Hello, World!")/**/

As a bonus, this also breaks SE's syntax highlighter.(削除) As a bonus, this also breaks SE's syntax highlighter. (削除ここまで) (seems to be fixed)

Try it online!


C (gcc), 38 bytes

/**/main(){puts("Hello, World!");}/**/

Try it online!


Dart, 39 bytes

/**/main(){print("Hello, World!");}/**/

Try it online!


Rust, 42 bytes

/**/fn main(){print!("Hello, World!")}/**/

Try it online!


C++ (gcc), 48 bytes

/**/main(){__builtin_puts("Hello, World!");}/**/

Try it online!


Scala, 52 bytes

/**/object H extends App{print("Hello, World!")}/**/

Try it online!


Go, 69 bytes

/**/package main
import."fmt"
func main(){Print("Hello, World!")}/**/

Try it online!


C# (.NET Core), 75 bytes

/**/class P{static void Main(){System.Console.Write("Hello, World!");}}/**/

Try it online!

Groovy, 28 bytes

/**/print"Hello, World!"/**/

Try it online!


Squirrel, 30 bytes

/**/print("Hello, World!")/**/

Try it online!


Swift, 30 bytes

/**/print("Hello, World!")/**/

Try it online!


JavaScript (Node.js), 36 bytes

/**/console.log("Hello, World!")/**/

As a bonus, this also breaks SE's syntax highlighter.

Try it online!


C (gcc), 38 bytes

/**/main(){puts("Hello, World!");}/**/

Try it online!


Dart, 39 bytes

/**/main(){print("Hello, World!");}/**/

Try it online!


Rust, 42 bytes

/**/fn main(){print!("Hello, World!")}/**/

Try it online!


C++ (gcc), 48 bytes

/**/main(){__builtin_puts("Hello, World!");}/**/

Try it online!


Scala, 52 bytes

/**/object H extends App{print("Hello, World!")}/**/

Try it online!


Go, 69 bytes

/**/package main
import."fmt"
func main(){Print("Hello, World!")}/**/

Try it online!


C# (.NET Core), 75 bytes

/**/class P{static void Main(){System.Console.Write("Hello, World!");}}/**/

Try it online!

Groovy, 28 bytes

/**/print"Hello, World!"/**/

Try it online!


Squirrel, 30 bytes

/**/print("Hello, World!")/**/

Try it online!


Swift, 30 bytes

/**/print("Hello, World!")/**/

Try it online!


JavaScript (Node.js), 36 bytes

/**/console.log("Hello, World!")/**/

(削除) As a bonus, this also breaks SE's syntax highlighter. (削除ここまで) (seems to be fixed)

Try it online!


C (gcc), 38 bytes

/**/main(){puts("Hello, World!");}/**/

Try it online!


Dart, 39 bytes

/**/main(){print("Hello, World!");}/**/

Try it online!


Rust, 42 bytes

/**/fn main(){print!("Hello, World!")}/**/

Try it online!


C++ (gcc), 48 bytes

/**/main(){__builtin_puts("Hello, World!");}/**/

Try it online!


Scala, 52 bytes

/**/object H extends App{print("Hello, World!")}/**/

Try it online!


Go, 69 bytes

/**/package main
import."fmt"
func main(){Print("Hello, World!")}/**/

Try it online!


C# (.NET Core), 75 bytes

/**/class P{static void Main(){System.Console.Write("Hello, World!");}}/**/

Try it online!

Set language for syntax highlighting for all blocks
Source Link

Groovy, 28 bytes

/**/print"Hello, World!"/**/
/**/print"Hello, World!"/**/

Try it online!


Squirrel, 30 bytes

/**/print("Hello, World!")/**/

Try it online!


Swift, 30 bytes

/**/print("Hello, World!")/**/

Try it online!


JavaScript (Node.js), 36 bytes

/**/console.log("Hello, World!")/**/

As a bonus, this also breaks SE's syntax highlighter.

Try it online!


C (gcc), 38 bytes

/**/main(){puts("Hello, World!");}/**/

Try it online!


Dart, 39 bytes

/**/main(){print("Hello, World!");}/**/
/**/main(){print("Hello, World!");}/**/

Try it online!


Rust, 42 bytes

/**/fn main(){print!("Hello, World!")}/**/

Try it online!


C++ (gcc), 48 bytes

/**/main(){__builtin_puts("Hello, World!");}/**/

Try it online!


Scala, 52 bytes

/**/object H extends App{print("Hello, World!")}/**/

Try it online!


Go, 69 bytes

/**/package main
import."fmt"
func main(){Print("Hello, World!")}/**/

Try it online!


C# (.NET Core), 75 bytes

/**/class P{static void Main(){System.Console.Write("Hello, World!");}}/**/

Try it online!

Groovy, 28 bytes

/**/print"Hello, World!"/**/

Try it online!


Squirrel, 30 bytes

/**/print("Hello, World!")/**/

Try it online!


Swift, 30 bytes

/**/print("Hello, World!")/**/

Try it online!


JavaScript (Node.js), 36 bytes

/**/console.log("Hello, World!")/**/

As a bonus, this also breaks SE's syntax highlighter.

Try it online!


C (gcc), 38 bytes

/**/main(){puts("Hello, World!");}/**/

Try it online!


Dart, 39 bytes

/**/main(){print("Hello, World!");}/**/

Try it online!


Rust, 42 bytes

/**/fn main(){print!("Hello, World!")}/**/

Try it online!


C++ (gcc), 48 bytes

/**/main(){__builtin_puts("Hello, World!");}/**/

Try it online!


Scala, 52 bytes

/**/object H extends App{print("Hello, World!")}/**/

Try it online!


Go, 69 bytes

/**/package main
import."fmt"
func main(){Print("Hello, World!")}/**/

Try it online!


C# (.NET Core), 75 bytes

/**/class P{static void Main(){System.Console.Write("Hello, World!");}}/**/

Try it online!

Groovy, 28 bytes

/**/print"Hello, World!"/**/

Try it online!


Squirrel, 30 bytes

/**/print("Hello, World!")/**/

Try it online!


Swift, 30 bytes

/**/print("Hello, World!")/**/

Try it online!


JavaScript (Node.js), 36 bytes

/**/console.log("Hello, World!")/**/

As a bonus, this also breaks SE's syntax highlighter.

Try it online!


C (gcc), 38 bytes

/**/main(){puts("Hello, World!");}/**/

Try it online!


Dart, 39 bytes

/**/main(){print("Hello, World!");}/**/

Try it online!


Rust, 42 bytes

/**/fn main(){print!("Hello, World!")}/**/

Try it online!


C++ (gcc), 48 bytes

/**/main(){__builtin_puts("Hello, World!");}/**/

Try it online!


Scala, 52 bytes

/**/object H extends App{print("Hello, World!")}/**/

Try it online!


Go, 69 bytes

/**/package main
import."fmt"
func main(){Print("Hello, World!")}/**/

Try it online!


C# (.NET Core), 75 bytes

/**/class P{static void Main(){System.Console.Write("Hello, World!");}}/**/

Try it online!

added 269 characters in body
Source Link
Mukundan314
  • 13.7k
  • 1
  • 19
  • 62

Groovy, 28 bytes

/**/print"Hello, World!"/**/

Try it online!


Squirrel , 30 bytes

/**/print("Hello, World!")/**/

Try it online!


Swift, 30 bytes

/**/print("Hello, World!")/**/

Try it online!


JavaScript (Node.js), 36 bytes

/**/console.log("Hello, World!")/**/

As a bonus, this also breaks SE's syntax highlighter.

Try it online!


C (gcc), 38 bytes

/**/main(){puts("Hello, World!");}/**/

Try it online!


Dart, 39 bytes

/**/main(){print("Hello, World!");}/**/

Try it online!


Rust, 42 bytes

/**/fn main(){print!("Hello, World!")}/**/

Try it online!


C++ (gcc), 48 bytes

/**/main(){__builtin_puts("Hello, World!");}/**/

Try it online!


Scala, 52 bytes

/**/object H extends App{print("Hello, World!")}/**/

Try it online!


Go, 69 bytes

/**/package main
import."fmt"
func main(){Print("Hello, World!")}/**/

Try it online!


C# (.NET Core), 75 bytes

/**/class P{static void Main(){System.Console.Write("Hello, World!");}}/**/

Try it online!

Groovy, 28 bytes

/**/print"Hello, World!"/**/

Try it online!


Swift, 30 bytes

/**/print("Hello, World!")/**/

Try it online!


JavaScript (Node.js), 36 bytes

/**/console.log("Hello, World!")/**/

As a bonus, this also breaks SE's syntax highlighter.

Try it online!


C (gcc), 38 bytes

/**/main(){puts("Hello, World!");}/**/

Try it online!


Dart, 39 bytes

/**/main(){print("Hello, World!");}/**/

Try it online!


Rust, 42 bytes

/**/fn main(){print!("Hello, World!")}/**/

Try it online!


C++ (gcc), 48 bytes

/**/main(){__builtin_puts("Hello, World!");}/**/

Try it online!


Scala, 52 bytes

/**/object H extends App{print("Hello, World!")}/**/

Try it online!


Go, 69 bytes

/**/package main
import."fmt"
func main(){Print("Hello, World!")}/**/

Try it online!


C# (.NET Core), 75 bytes

/**/class P{static void Main(){System.Console.Write("Hello, World!");}}/**/

Try it online!

Groovy, 28 bytes

/**/print"Hello, World!"/**/

Try it online!


Squirrel , 30 bytes

/**/print("Hello, World!")/**/

Try it online!


Swift, 30 bytes

/**/print("Hello, World!")/**/

Try it online!


JavaScript (Node.js), 36 bytes

/**/console.log("Hello, World!")/**/

As a bonus, this also breaks SE's syntax highlighter.

Try it online!


C (gcc), 38 bytes

/**/main(){puts("Hello, World!");}/**/

Try it online!


Dart, 39 bytes

/**/main(){print("Hello, World!");}/**/

Try it online!


Rust, 42 bytes

/**/fn main(){print!("Hello, World!")}/**/

Try it online!


C++ (gcc), 48 bytes

/**/main(){__builtin_puts("Hello, World!");}/**/

Try it online!


Scala, 52 bytes

/**/object H extends App{print("Hello, World!")}/**/

Try it online!


Go, 69 bytes

/**/package main
import."fmt"
func main(){Print("Hello, World!")}/**/

Try it online!


C# (.NET Core), 75 bytes

/**/class P{static void Main(){System.Console.Write("Hello, World!");}}/**/

Try it online!

added 300 characters in body
Source Link
Mukundan314
  • 13.7k
  • 1
  • 19
  • 62
Loading
added 250 characters in body
Source Link
Mukundan314
  • 13.7k
  • 1
  • 19
  • 62
Loading
added 57 characters in body
Source Link
Mukundan314
  • 13.7k
  • 1
  • 19
  • 62
Loading
added 342 characters in body
Source Link
Mukundan314
  • 13.7k
  • 1
  • 19
  • 62
Loading
added 439 characters in body
Source Link
Mukundan314
  • 13.7k
  • 1
  • 19
  • 62
Loading
added 339 characters in body
Source Link
Mukundan314
  • 13.7k
  • 1
  • 19
  • 62
Loading
added 261 characters in body
Source Link
Mukundan314
  • 13.7k
  • 1
  • 19
  • 62
Loading
added 364 characters in body
Source Link
Mukundan314
  • 13.7k
  • 1
  • 19
  • 62
Loading
Source Link
Mukundan314
  • 13.7k
  • 1
  • 19
  • 62
Loading

AltStyle によって変換されたページ (->オリジナル) /