#!/bin/zsh # Basic calculator using the shell # Note that zsh can handle floating-point math, whereas POSIX sh cannot for v; do printf ' %s ' "$(($v))" done echo