Supporta il tuo Forum su Patreon!
 
  > Register  
  > Calendar  
  > Member List  
 
  > Support your Forum  
  > Today's Posts  
   

Go Back   netgamers.it > Search Forums

Showing results 1 to 1 of 1
Search took 0.00 seconds.
Search: Posts Made By: Ufo13
Forum: Developer's Zone 6th February 2012, 12:31
Replies: 165
Sticky: Project Euler
Views: 154,693
Posted By Ufo13
Sto imparando Ruby e cosi` ho deciso di mettere...

Sto imparando Ruby e cosi` ho deciso di mettere in pratica quello che sto imparando risolvendo i problemi di P.E.

Soluzione 1

(1...1000).select{|x| (x % 3) == 0 || (x % 5) == 0}.inject(:+)
...
Showing results 1 to 1 of 1

 
Forum Jump

All times are GMT +2. The time now is 14:17.



Copyright 2017-2024 by netgamers.it