0
0

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 1 year has passed since last update.

hash(基礎)keysとvalues

Posted at

スクリーンショット 2022-11-23 15.51.50.png
hashとは、複数のデータを管理する事ができ、
データをバリュー。名前をキーと呼ぶ。

ハッシュの宣言
スクリーンショット 2022-11-23 15.46.43.png

問題
以下のように出力したい時はどのようにハッシュを設定すれが良いか。
スクリーンショット 2022-11-23 15.49.42.pngスクリーンショット 2022-11-23 15.50.06.png

解答↓

スクリーンショット 2022-11-23 15.51.50.png

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?