#include
int main(void)
{
puts("Hello, world!");
}
#include
int main()
{
std::cout << "Hello, world!
";
return 0;
}
using System;
class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello, world!");
}
}
console.log 'Hello, world!'
import javax.swing.JFrame; //Importing class JFrame
import javax.swing.JLabel; //Importing class JLabel
public class HelloWorld {
public static void main(String[] args) {
JFrame frame = new JFrame(); //Creating frame
frame.setTitle("Hi!"); //Setting title frame
frame.add(new JLabel("Hello, world!"));//Adding text to frame
frame.pack(); //Setting size to smallest
frame.setLocationRelativeTo(null); //Centering frame
frame.setVisible(true); //Showing frame
}
}
document.write('Hello, world!');
$("body").append("Hello world!");
program HelloWorld;
begin
WriteLn('Hello, world!');
end.
Module Module1
Sub Main()
Console.WriteLine("Hello, world!")
End Sub
End Module