Skip to content

TomDev-06/project_ruby

Repository files navigation

Ruby Basics Exercises

This repository contains a series of exercises from The Hacking Project curriculum, designed to introduce and practice the fundamentals of the Ruby programming language.

Structure

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.

Concepts Covered

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.

How to Run

You can run any exercise file from your terminal using the ruby command:

ruby exo_01.rb

About

exercice ruby avec aide

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages