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!

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:

Ahh so close! The loop should be separated by semi-colons instead of commas. :p
for (var i = 0; i < heyThere.length; i++){
 
And here is something in my own language I'm working on:

Code:
<<
    (
        greeting -> <<
            (
                a -> "Hello"
            ) /\ (
                b -> "Matt"
            ) /\ (
                a b
            )
        >>
    ) /\ (
        greeting "!"
    )
>>

The language is taking its own path towards logic waters.
 
Last edited:
[CODE lang="html" title="Hello World"]<html>
<head>
<style>
h1 {
color: Orange;
font-size: 50px;

}
.blood {
color: Orange;
text-shadow:
4px 4px 1px #300000,
4px 6px 1px #400000,
4px 8px 1px #500000,
4px 10px 1px #600000,
4px 12px 1px #700000,
4px 14px 1px #800000,
4px 16px 1px #900000,
4px 18px 1px #A00000,
4px 20px 1px #B00000,
4px 22px 1px #C00000,
4px 24px 1px #D00000,
4px 26px 1px #E00000,
4px 28px 1px #F00000,
4px 30px 1px #FA0000,
4px 32px 1px #FB0000,
4px 34px 1px #FC0000,
4px 36px 1px #FD0000,
4px 38px 1px #FE0000,
4px 40px 2px #FF0000;
}
</style>

</head>
<body>
<h1 class="blood">OLLEH</h1>

</body>
<html/>[/CODE]
 
HTML:
<p style="color:red; font-weight:bold;">
    Ello!
</p>
 
Hi everyone!
[CODE lang="java" title="Hello!"]
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
[/CODE]
 
Please remember to use our Code BBCode whenever you are pasting code into a thread/posts. You can read more here: https://codeforum.org/threads/how-to-post-your-code-into-threads.183/
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";
Code:
public class Main {
     public static void main(String args[]) {
          System.out.println("Hello Malcom! Hope your having a good day.");
     }
}
 
Last edited by a moderator:
PHP:
$Date = date("a"); 
$EveningCheck = date("h"); 
$Day = date("l");

// Checking for Morning, Afternoon and Evening

if ($Date == "am"){
    
    $A = "Good Morning";
    
}else if($EveningCheck > "17") {

    $A = "Good Evening";

}else{ 

    $A = "Good Afternoon";
    
}

// Nothing too fancy

echo $A . "Master Yoda, EEEEEEE i mean Malcolm. I hope you are having an amazing" . $Day;
 
Code:
<<
    <<
        hello world
    >> -| <<
        <<sentence>>
        << <<word sentence>> |- <<sentence>> >>
        <<          <<word>> |- <<sentence>> >>

        <<  <<spanish>> |- <<word>>    >>
        <<   <<"hola">> |- <<spanish>> >>
        <<  <<"mundo">> |- <<spanish>> >>

        << <<"hello">> |- <<"hola">>  >>
        << <<"world">> |- <<"mundo">> >>
    >>
>>

Translates English to Spanish
 
Last edited:

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom