chayan
Asked: In: Programmer's World
How to print nos as 5,4,3,2,1 using while loop in using shell script?
How to print nos as 5,4,3,2,1 using while loop in using shell script?
write a shell script to print the given number in reverse order | write a shell script to print numbers as 5,4,3 2 1 using while loop unix | while loop in shell script | write a shell script to display the 1 to 25 series using while loop | write a shell script to print the numbers as 1 3 5 7 9 using while loop | while loop with case statement in shell script | nested while loop in shell script | write a shell script to print sum of digits of the given number | do while in shell script
write a shell script to print the given number in reverse order | write a shell script to print numbers as 5,4,3 2 1 using while loop unix | while loop in shell script | write a shell script to display the 1 to 25 series using while loop | write a shell script to print the numbers as 1 3 5 7 9 using while loop | while loop with case statement in shell script | nested while loop in shell script | write a shell script to print sum of digits of the given number | do while in shell script
write a shell script to print the given number in reverse order | write a shell script to print numbers as 5,4,3 2 1 using while loop unix | while loop in shell script | write a shell script to display the 1 to 25 series using while loop | write a shell script to print the numbers as 1 3 5 7 9 using while loop | while loop with case statement in shell script | nested while loop in shell script | write a shell script to print sum of digits of the given number | do while in shell script
write a shell script to print the given number in reverse order | write a shell script to print numbers as 5,4,3 2 1 using while loop unix | while loop in shell script | write a shell script to display the 1 to 25 series using while loop | write a shell script to print the numbers as 1 3 5 7 9 using while loop | while loop with case statement in shell script | nested while loop in shell script | write a shell script to print sum of digits of the given number | do while in shell script
write a shell script to print the given number in reverse order | write a shell script to print numbers as 5,4,3 2 1 using while loop unix | while loop in shell script | write a shell script to display the 1 to 25 series using while loop | write a shell script to print the numbers as 1 3 5 7 9 using while loop | while loop with case statement in shell script | nested while loop in shell script | write a shell script to print sum of digits of the given number | do while in shell script
write a shell script to print the given number in reverse order | write a shell script to print numbers as 5,4,3 2 1 using while loop unix | while loop in shell script | write a shell script to display the 1 to 25 series using while loop | write a shell script to print the numbers as 1 3 5 7 9 using while loop | while loop with case statement in shell script | nested while loop in shell script | write a shell script to print sum of digits of the given number | do while in shell script write a shell script to print the given number in reverse order write a shell script to print numbers as 5,4,3 2 1 using while loop unix while loop in shell script write a shell script to display the 1 to 25 series using while loop write a shell script to print the numbers as 1 3 5 7 9 using while loop while loop with case statement in shell script nested while loop in shell script write a shell script to print sum of digits of the given number do while in shell script
Share
#!/bin/bash
n=6
while [ $n != 1 ]
do
n=$(($n - 1 ))
echo $n
done