Java
public class Main {
public static void main (String[] args) {
System.out.println("Hello World");
}
}
Perl
#!/usr/bin/perl
print "Hello World";
PHP
<?php
echo "Hello World";
?>
`?>`
Can be omittedPython
print "Hello World"
Python3
(
)
cannot be omitted in py3.print ("Hello World");
Ruby
#!/usr/bin/ruby
puts "Hello World";
Recommended Posts