Hello World Program in Eight Different Popular Programming Languages
Hello World Program in Java
class HelloWorld
{
public static void main(String args[])
{
System.out.println("Hello World");
}
}
Hello World Program in C
#include<stdio.h>
main()
{
printf("Hello World");
}
Hello World Program in C++
#include <iostream>
int main()
{
std::cout << "Hello, world";
}
Hello World Program in Javascript
<script>
window.onload = function()
{
document.getElementById('result').innerHTML = "Hello World";
}
</script>
<div id="result></div>
Post a Comment