done with the read method. You dont even need to Initialization the variable beforehand

#!/bin/sh
read a
echo $a