This repository contains a series of exercises from The Hacking Project curriculum, designed to introduce and practice the fundamentals of the Ruby programming language.
The exercises are numbered sequentially from exo_01.rb to exo_17.rb. Each file is a standalone Ruby script that solves a specific small problem.
Through these exercises, the following core programming concepts are explored:
- Variables: Storing and manipulating data.
- User Input: Getting input from the user via the terminal with
gets.chomp. - Loops: Repeating actions with
.times,.each, and.downto. - Conditionals: Making decisions in the code with
if/else. - Arrays: Creating and manipulating lists of data (e.g., email lists).
- String Manipulation: Building shapes and patterns (like the pyramids) by repeating and combining strings.
You can run any exercise file from your terminal using the ruby command:
ruby exo_01.rb