Skip to content

Instantly share code, notes, and snippets.

@ear1grey
Created September 30, 2016 15:00
Show Gist options
  • Save ear1grey/ca7cc7530bdcf1133f6361969ceda106 to your computer and use it in GitHub Desktop.
Save ear1grey/ca7cc7530bdcf1133f6361969ceda106 to your computer and use it in GitHub Desktop.
Greet functions in various languages.
/* Prints a greeting */
class Greeter {
public void greet(String name) {
System.out.println(
"Hello " + name
);
}
}
/* Prints a greeting */
function greet( name ) {
console.log("Hello "+ name);
}
def greet( name ):
"Prints a greeting."
print("Hello " + name)
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment