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!

Malcolm

Administrator
Administrator
Staff Team
Code Plus
Company Plus
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";

You say Hello to the person above you
 
Last edited:
Lemme try:

Code:
std::cout << "Hello, Xoogle";
Sorry didn't make it clear enough but you have to say Hello to the person above you! :D

HTML:
<p>
    Hello, Xoogle!
</p>
 
C:
#include <stdio.h>

void Joe(void);

int main(void) {
     Joe();

     return 0;
}

void Joe(void) {
     printf("Hello, Joe. May I ask just what kind of sorcery you've just done?");
}


JavaScript:
(function() {
    [ "Hey Mathematical",
      "That's CSS way of adding content",
      "right before the root element, i.e. <html>." ].concat().toString();
})();
 
JavaScript:
var heyThere = ['Hello, ', 'My ', 'name ', 'is ']
var myName = "Matt"
var output = ""

for (var i = 0, i < heyThere.length, i++){
    output += heyThere[i];
}

output += myName + ".";
console.log(output);

Might be a bit convoluted, but it should work in theory. Just wanted to include a for loop lol. Been awhile since I messed with any code. :thinking:
 
Last edited:
Back
Top Bottom