-
Program to Find Fibonacci Series using Shell Script
This is the bash code for Fibonacci Series upto a number n which will be inserted by user. Code: clear echo “Program to Find Fibonacci Series” echo “How many number of terms to be generated ?” read n x=0 y=1 i=2 echo “Fibonacci Series up to $n terms :” echo “$x” echo “$y” while […
-
Shell Scripting Program to check if a Number is Palindrome
Palindrome Numbers are the numbers whose reverse will also give you the same number. For Example, 567 is not a palindrome number because the reverse of 567 is 765 which is not same as the number, whereas 8778 is a palindrome which on reverse will also give the same number. Following is a shell scripting…
-
Bash Program to check if a number is Armstrong:Shell Scripting
Shell scripting is a command line scripting language used by Unix- Like environment. The below program is a Bash program to check if a number is Armstrong or not. Whats is Armstrong number? An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to…