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

EkBass

King Coder
Ok. Here is really hard way to do it lol.

XML:
<?xml version="1.0" encoding="UTF-8"?>
<message>
    <letter><title>H</title></letter>
    <letter><title>e</title></letter>
    <letter><title>l</title></letter>
    <letter><title>l</title></letter>
    <letter><title>o</title></letter>
    <letter><title>_</title></letter>
    <letter><title>W</title></letter>
    <letter><title>o</title></letter>
    <letter><title>r</title></letter>
    <letter><title>d</title></letter>
</message>

And then we need XSLT to read the XML data:
Code:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html" indent="yes"/>
 
  <xsl:template match="/">
    <html>
      <head>
        <title>Letters</title>
      </head>
      <body>
        <table>
          <tr>
            <xsl:apply-templates select="//letter"/>
          </tr>
        </table>
      </body>
    </html>
  </xsl:template>
 
  <xsl:template match="letter">
    <td>
      <xsl:value-of select="title"/>
    </td>
  </xsl:template>
 
</xsl:stylesheet>

And we end up in html.

HTML:
<html>
   <head>
      <title>Letters</title>
   </head>
   <body>
      <table>
         <tr>
            <td>H</td>
            <td>e</td>
            <td>l</td>
            <td>l</td>
            <td>o</td>
            <td>_</td>
            <td>W</td>
            <td>o</td>
            <td>r</td>
            <td>d</td>
         </tr>
      </table>
   </body>
</html>
 

PGen98

Coder
Code:
package main
 
import "fmt"
 
// Main function
func main() {
 
    fmt.Println("Hello there, EkBass")
}

golang
 

mrbbfst

New Coder
C++:
#include <iostream>
int main(int argc, char** argv) {
    std::cout << “Hello vipulgupta”;
    return 0;
}
 

skifli

Backend Developer
I love one-liners... and yes it does work.

Python:
lst = lambda *args: [
  arg if type(args[index]) == type(arg) else type(args[index])(arg) for index, arg in enumerate([
      chr(0).join([arg[int(chr(48))] for arg in [[str(arg)] for arg in args]])
    ][int(chr(48))].split(chr(0)))
]; print("".join(lst(chr(72), chr(101), chr(108), chr(108), chr(111), chr(44), chr(
    32), chr(67), chr(104), chr(97), chr(111), chr(116), chr(105), chr(99),
               chr(83), chr(97), chr(108), chr(109), chr(111), chr(110))))
 

x_c_x

Coder
I love one-liners... and yes it does work.

Python:
lst = lambda *args: [
  arg if type(args[index]) == type(arg) else type(args[index])(arg) for index, arg in enumerate([
      chr(0).join([arg[int(chr(48))] for arg in [[str(arg)] for arg in args]])
    ][int(chr(48))].split(chr(0)))
]; print("".join(lst(chr(72), chr(101), chr(108), chr(108), chr(111), chr(44), chr(
    32), chr(67), chr(104), chr(97), chr(111), chr(116), chr(105), chr(99),
               chr(83), chr(97), chr(108), chr(109), chr(111), chr(110))))
I hope this works! Lol. =).

Code:
HTML:

<p id="hello"></p>

Javascript:

let h = "Hello, skifli";
document.getElementById('hello').innerHTML = h;
 

Alhazred

New Coder
PHP:
$letters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '];
$selection = [7,8,26,4,21,4,17,24,14,13,4];
$output = '';

foreach( $selection as $pick ) {
    $output .= $letters[$pick];
}

echo ucfirst($output);
 
Top