in reply to Re: Generate a # between 1 and 50 in groups of 5
in thread Generate a # between 1 and 50 in groups of 5

pme,

This is exactly what I was looking to do. Now we are tasked with something additional: "Sum each group and display the results so that each number is on its own line." How would I go about doing something like this? Would I need to implement some sort of do/while or for/next loop?

Thank you in advance!
  • Comment on Re^2: Generate a # between 1 and 50 in groups of 5

Replies are listed 'Best First'.
Re^3: Generate a # between 1 and 50 in groups of 5
by LanX (Saint) on Feb 04, 2015 at 16:15 UTC
    > How would I go about doing something like this?

    perlintro is a good entry point to learn programing!

    Cheers Rolf

    PS: Je suis Charlie!