Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Fun activity Say hello... in a coding language!

Hello Coders!

Let's do something fun! This is supposed to be a fun way for us as a community to engage and learn from each other.

Okay, here's how it goes. You can decide what language you want to use, and all you have to say is "Hello, (person above)!" in the language that you picked ([UWSL][UWSL][UWSL]Using the BBCode function)[/UWSL][/UWSL][/UWSL].
So here's an example
C++:
std::cout << "Hello, Master Yoda";
print ("Hello")
 
Python:
import time

words = {"Hello": ('Hello Zoe!')}

time.sleep(1)

print(words["Hello"])
 
Code:
[B]hello[/B]

Code:
$word = "hello";
echo $word;

$words = array("hello", "goodbye");
echo $words[0];

$hello = new Class("hello"){
 public function __construct($lang = "english"){
  $this->lang = $lang;
}

 public function say(){
  $words = array(
   "english"=>"Hello",
   "spanish"=>"Hola"
  );
  return $words[$this->lang];
 }

}

$hello = new hello();
echo $hello->say() . "<br>";
$hello->lang = "spanish";
echo $hello->say();
 
Last edited:
Hello.

I'm using Markdown 😏
hahaha, I suppose it counts?
You can make text bold using 2 asterisks ** or italic with one * asterisk.
**hello** *hello*

Code:
var json = {
  "welcome": "Hello!",
  "farewell":"goodbye"
}
alert(json.welcome)
console.log("Don't forget to say " + json.farewell + " before you go!")

Some basic json / JavaScript
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom