int类型占4个byte(字节),byte(字节)类型占1个字节,1个byte(字节)有8位
(1)C语言:
#include <stdio.h>
int main(void)
{
printf("Hello World!");
return 0;
}
(2)C++:
#include <iostream>
int main(void)
{
std::cout<<"Hello World!";
}
(3)Java:
public class HelloWorld
{//程序的入口
public static void main(String[] args)
{//想控制台输出信息
System.out.println("Hello World!");
}
}
(4)PHP:
<?php
echo "Hello World!";
?>
(5)Ruby:
puts "Hello World!"
(6)Go:
package main
import "fmt"
func main(){
fmt.Printf("Hello World!\n God Bless You!");
}