Hello World

pragma specifies the compiler version of Solidity.

// compiler version must be greater than or equal to 0.5.11 and less than 0.6.0
pragma solidity ^0.5.11;

contract HelloWorld {
  string public greet = "Hello World!";
}

Try on Remix