Get Update on recent Technology & Programming

Sunday, 29 October 2017

Shell Script Program To Check Number is Even Or Odd

Posted by   on Pinterest

Shell Script Program To Check Number is  Even Or Odd





 echo "Enter a number"  
 read num  
 rem=`expr $num % 2`  
 if [ $rem -eq 0 ]  
 then  
  echo "$num is Even"  
 else  
  echo "$num is Odd"  
 fi  

No comments:
Write comments

Hey, we've just launched a new custom color Blogger template. You'll like it -
Join Our Newsletter