I was bored and got together some Hello World application from the languages I can program in:
1. C
#include <stdlib.h>
void main()
{
printf(“Hello world!”);
}
2. C++
#include <iostream>
using namespace std;
int main()
{
cout << “Hello World” << endl;
return 0;
}
3. Java
public class helloWorld {
public static void main( String[] args )
{
System.out.println(“Hello World”);
}
}
4. PHP
<?php
echo 'Hello World!';
?>
5. Html
<html>
<head>
<title>Hello World</title>
</head>
<body>
Hello World!
</body>
</html>
6. Shell script
#!/bin/csh
echo “Hello World!”
How would you say 'Hello World!'??
No comments:
Post a Comment