Skip to content

Enhance hola.rb to include loop for multiple prints - #1

Merged
NachoOFC merged 1 commit into
mainfrom
NachoOFC-patch-1
Aug 13, 2026
Merged

Enhance hola.rb to include loop for multiple prints#1
NachoOFC merged 1 commit into
mainfrom
NachoOFC-patch-1

Conversation

@NachoOFC

Copy link
Copy Markdown
Member

Added a loop to print 'Hola Mundo' 10 times.

Added a loop to print 'Hola Mundo' 10 times.
Copilot AI lite review requested due to automatic review settings August 13, 2026 15:44
@NachoOFC
NachoOFC merged commit 7eed06e into main Aug 13, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates hola.rb to expand the output from a single print to repeated output via a loop, aiming to print a greeting multiple times.

Changes:

  • Added a loop intended to print a greeting 10 times.
  • Added additional console output before and after the loop (start/end messages).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread hola.rb
Comment on lines 1 to +10
puts "Hola Mundo"

# Un ciclo típico para imprimir Hola Mundo 10 veces
puts "--- Iniciando ciclo For ---"

(1..10).each do |i|
puts "#{i}: ¡Hola Mundo desde Ruby!"
end

puts "--- Ciclo completado con éxito ---"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants