In: Computer Science
I need these written in shell code
1.nested loop. e.g. 1*2 + 2*3 + 3*4 + ...(n-1)*n. (Only nested loops)
2.Fibonacci numbers.
The below shell code is directly written in bash shell (.sh)
1)
Shell code using nested loops :
Standard input and it's respective output :
2)
Shell code for Fibonacci series using nested loops :
Standard input and respective output :