일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- rails7
- DART
- html
- CSS
- Web
- 반다이몰
- 単語
- 日本語
- 디지몬
- メソッド
- Flutter
- jsp
- Python
- 건담베이스
- C로 시작하는 컴퓨터 프로그래밍4판
- javascript
- rails
- 인프런
- springboot
- Spring
- 연습문제
- java
- 일본어
- 자바
- nico
- ruby
- 비즈니스일본어
- 一日一つメソッド
- vscode
- 건담
Archives
- Today
- Total
목록Ruby연습문제 (1)
AR삽질러

Ruby 연습문제 0. 문자열 반전 def reverse_string(str) end puts reverse_string("Hello, Ruby!") def reverse_string(str) str.reverse end puts reverse_string("안녕하세요! Ruby공부를 시작했습니다!") reverse : 배열이나 문자열의 요소를 역순으로 반전 0-1. 배열 반전 def reverse_array(arr) arr.reverse end arr = [4, 3, 2, 9, 8] puts reverse_array(arr).inspect # 8, 9, 2, 3, 4 1. 배열의 합 def array_sum(arr) # 여기에 코드 작성 end puts array_sum([1, 2, 3, 4, 5]) ..
Ruby/Ruby-한국어
2023. 9. 8. 20:18