Arithmetic Operators | Shell Scripting Beginners Tutorial-34

Arithmetic operators :-



+ addition



- substraction



\* multiplication



/ division



% modulo division (it gives remainder)



eg:-



5 % 2 = 1 (remainder)



5 / 2 = 2


No comments:

Post a Comment