Tag Archives: loop

(Java) Fun with Fibonacci, Golden Ratio and Factorials, with loops vs recursives

 

Posted in Java | Also tagged , , , , , , , | Leave a comment

For loops in Bash

For loops in Bash can come in handy when for example, you want to perform bulk operations. Think of renaming all files in a directory or executing a collection of scripts. The following snippet simply iterates through a set of prime numbers and prints them to the console.

Posted in Bash | Also tagged , , , , , | Leave a comment