Hello, World!
I was wondering on how many times we bump into this subject when we start in the programming carrer. That’s why my first post on this blog wouldn’t be different, so I wrote down this phrases on the languages that I’m most familiarwith.
HTML + Javascript
<!-- HTML + Javascript -->
<!DOCTYPE html>
<html>
<head> </head>
<body>
<h1 id="hello" class="world"> </h1>
<script>
hello.text = "Hello, World!";
alert('Hello, World!');
</script>
</body>
</html>
Python
# Python
print('Hello, World!')
C#
using System;
namespace Hello
{
class World
{
static void Main(string[] args)
{
Console.WriteLine("Hello, World!");
Console.ReadLine();
}
}
}
C
// C
#include <stdio.h>
int main() {
printf("Hello, World!");
return 0;
}