Hello World
C
.c
#include <stdio.h>
int main()
{
printf("hello,world");
return 0;
}
C++
.cpp
#include <iostream>
using namespace std;
int main()
{
cout << "hello,world" << endl;
return 0;
}
Java
.java
public class Src {
public static void main(String[] args) {
System.out.print("hello,world");
}
}
JavaScript
.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
document.write("helloworld");
</script>
</body>
</html>
Vbscript
.vbs
Option Explicit
Msgbox "hello,world"
Perl
.pl
#!/usr/bin/perl
print("hello,world");
PhP
.php
#!/usr/bin/php
<?php
echo "hello,world";
?>
Python
.py
#!/usr/bin/python3
print("hello,world")
Ruby
.rb
#!/usr/bin/ruby
puts "hello,world"
Bash
.sh
#!/usr/bin/bash
echo "hello,world"
Bat
.bat
@echo off
echo "hello,world"
Powershell
.ps1
Write-Host "hello,world"

浙公网安备 33010602011771号