echo "Program to check even or odd number"
echo "Enter a number"
read n
a=`expr $n % 2`
if [ $a -eq 0 ] ; then #Semicolon is most important for Executing ifelse statements
echo "It is an even number"
else
echo "It is an odd number"
fi
The Bourne shell (sh) ,The C shell (csh) ,The Korn shell (ksh) ,The Z-Shell (zsh) ,The POSIX shell,The Bourne Again SHell (Bash)null
Linux shell is a programming language. its fully different from others progrmming language. the script which is used in Linux quite tough to remember if we comparison to other programming laguages.
2 4 6
interactive interpreter more like a "shell" (if you're a unix person).
shell uses an odd number,merge uses an even number?
Avogadro's number is a constant. Therefore only one number is equal to Avogadro's number.
The maximum number of electrons in a shell / energy level is given by 2n2.
shell script for check whether the given no is prime or not??echo "input any number:"read nono=`expr $no`i=`expr 2`while [ $i -lt $no ]doif [ `expr $no % $i` -eq 0];thenecho "$no is not a prime no.."break 2fii=`expr $i +1`doneif [ $i -eq $no ];thenecho "$no is a PRIME no..."fi
Shell programming can get you only so far; after that you need to use another programming language (possibly even another scripting language) to get the job done. Shell programming is designed to work with the system interface and to help automate tasks; it isn't good for everything.
syntax error
The number of electrons in any given shell can be represented by 2n2, where n = the shell number. The first shell has 2, second has 8, third has 18...
C is a programming language. A shell is an interface.
The Bourne shell (sh) ,The C shell (csh) ,The Korn shell (ksh) ,The Z-Shell (zsh) ,The POSIX shell,The Bourne Again SHell (Bash)null
Only in hydrogen or helium, because in these two elements only the innermost shell is also the outermost shell.
Linux shell is a programming language. its fully different from others progrmming language. the script which is used in Linux quite tough to remember if we comparison to other programming laguages.
The same value of the principal quantum number.
2 4 6