Thanh Phong
C
#include
int main()
{
printf ("Hello World!\n"); return 0;
}
C++
#include
using namespace std;
void main()
{
cout << "Hello World!" << endl;
}
PHP
echo 'Hello World!';
?>
C#
class HelloWorld
{
static void main()
{
System.Console.WriteLine ("Hello World!");
}
}
JAVASCRIPT
<body>
<script language="JavaScript" type="text/javascript">
document.write('Hello World');
</script>
</body>
</html>
Perl
print "Hello World!\n";
Python
print "Hello World"
Visual bacis
'Hello World
Imports System.Console
Class HelloWorld
Public Shared Sub Main()
WriteLine("Hello world!")
End Sub
End Class
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World");
}
}
Ruby
puts "Hello World!"
0 nhận xét:
Đăng nhận xét