Created
September 30, 2016 15:00
-
-
Save ear1grey/ca7cc7530bdcf1133f6361969ceda106 to your computer and use it in GitHub Desktop.
Greet functions in various languages.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Prints a greeting */ | |
class Greeter { | |
public void greet(String name) { | |
System.out.println( | |
"Hello " + name | |
); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Prints a greeting */ | |
function greet( name ) { | |
console.log("Hello "+ name); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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