Ruby Examples
This commit is contained in:
11
level1/02.rb
Executable file
11
level1/02.rb
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/ruby
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
=begin
|
||||
이름을 변수에 저장하고 `"안녕하세요, 이름님"` 출력
|
||||
=end
|
||||
|
||||
name = "홍길동"
|
||||
puts "안녕하세요, #{name}님."
|
||||
|
||||
# 루비는 #{} 문자열 보간 사용
|
||||
Reference in New Issue
Block a user