Shell Script to Print Numbers in Descending Order - The Coding Shala
Home >> Scripting >> Descending order of a number
Shell Script to Print Numbers in Descending Order
Write a shell script to print numbers in descending order using a while loop?
Code:
#!/bin/bash i=5 while test $i != 0 do echo "$i" i=`expr $i - 1` done
Other Posts You May Like
Comments
Post a Comment