3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

各種言語別 Hello World!出力一覧  (適時更新予定)

Last updated at Posted at 2018-09-29
python3.x系の場合:

print("Hello World!")
_____________________
python2.x系の場合:

print "Hello World!"
_____________________
javaの場合:

import java.util.*;

public class Main{
    public static void main(String[] args) throws Exception {
        System.out.println("Hello World!");
    }
}
_____________________
PHPの場合:

<?php
echo "Hello World!";

?>
_____________________
Rubyの場合:

puts "Hello World!";

または

print "Hello World!";

_____________________
Goの場合:

package main
import "fmt"
func main(){

    fmt.Println("Hello World!")
}

_____________________
javascriptの場合:

process.stdin.resume();
process.stdin.setEncoding('utf8');

var hello = "Hello World!";
console.log(hello);

または
console.log("Hello World!");
_____________________
C#の場合:

public class Hello{
    public static void Main(){
        
        System.Console.WriteLine("Hello World!");
    }
}

_____________________
Swiftの場合:

print("Hello World!")

_____________________
Rの場合:

cat("Hello World!")

_____________________
Cの場合:

#include <stdio.h>
int main(void){

        printf("Hello World!");
}
_____________________
C#の場合:

public class Hello{
    public static void Main(){
        
        System.Console.WriteLine("Hello World!");
    }
}
_____________________
C++の場合:

#include <iostream>
using namespace std;
int main(void){

    printf("Hello World!");
    
    return 0;
}
_____________________
luaの場合:

print("Hello World!")
_____________________
Cobolの場合:

IDENTIFICATION DIVISION.
program-id. Hello.
procedure division.

display "Hello World!".
_____________________
Elixirの場合:

IO.puts "Hello World!"

_____________________
Haskellの場合:

main = putStrLn "Hello World!"

_____________________




3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?