这是我的第一篇博客,这是我的第一篇博客,用一些语言写一个hello word程序
c++:
#include <stdio.h>
int main()
{
printf("hello world!");
return 0;
}
java:
publicclass HelloWorld{
public static void main(String args[])
System.out.println("HelloWorld");
}
}
python:
print('Hello World!')
js:
function hello() {
console.log('Hello World!');
}
hello();
php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<?php
echo "hello world";
?>
</body>
</html>