Read a number and find whether the number is odd or even in script
Answers
Answered by
0
Shell Script to find Number is Even or Odd. This is a basic shell script to find whether given number is even or odd. Here we use a simple condition rem=$(( $n % 2 )) to check the number is even or not. If the remainder is 0 then the number is Even else it is odd.
Similar questions
Political Science,
6 months ago
Physics,
6 months ago
Computer Science,
1 year ago
English,
1 year ago
Physics,
1 year ago
Hindi,
1 year ago