Anonymous user
Pascal's triangle: Difference between revisions
m
→{{header|UNIX Shell}}
Line 3,268:
<lang bash>#! /bin/bash
pascal() {
local -i
if ((
echo 1
else
local output=$( $FUNCNAME $((
set -- $( tail -n 1 <<<"$output" ) # previous row
echo "$output"
printf "%d " $((
done
echo
fi
}
|