Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fonctionAffichage()
- puts "resultat: #{arg1}"
- end
- def premiereFonction()
- return arrayQuiVaBien
- end
- def secondeFonction(premiereFonction) // ou arrayQuiVaBien en parametre si on le met en global
- for n in arrayQuiVaBien // ou arg1 ou $1 selon la syntaxe ruby
- do
- fonctionAffichage($n)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement