Help us understand the problem. What is going on with this article?

【プログラミング学習】 言語別ロジック比較 part.1("Hello World")

More than 1 year has passed since last update.

某プログラミング学習サイトでいろんな言語を並行して学習し始めたので、学習内容のアウトプットとして、各言語で同じ出力を得ようとした時に、それぞれどんなコードになって、どう違ってくるのかをまとめていこうと思います。

1."Hello World."

変数messageに格納された"Hello World."を表示

Ruby

helloworld.rb
message = "Hello World."
puts message
$ ruby helloworld.rb
Hello World.

Python3

helloworld.py
message = "Hello World."
print(message)
$ python helloworld.py
Hello World.

Swift

helloworld.swift
var message = "Hello World."
print(message)
(playground)
Hello World.

Java

helloworld.java
public class helloworld {
    public static void main(String[] args){
         System.out.println("Hello World.");
    }
}
(eclipse console)
Hello World.

C#

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

(コンパイルしてexeファイルはできてる前提
手元の実行環境では'mono'を使って実行)

$ mono helloworld.exe
Hello World.

参考記事等

macでのC#の実行環境準備について
MacでC#のコードをコンパイルして実行する

macでのjava開発・実行環境準備について
【Mac編】Javaの開発環境を簡単に一括インストールする方法

ydzum1123
システム、サービスを作れる人になりたい。HTML5+CSS3,JavaScript,Python3,Ruby,Java,COBOL,OracleDB(SQL)。AdobeCCも少し。ほかにもPHP,Julia,Go,flutter(dart),GCP(Firebase),AWS,ブロックチェーン,ディープラーニングを勉強中。
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした