各位数字积 bash

Run Settings
LanguageBash
Language Version
Run Command
#解法1 #read n;r=1;while [ $n -gt 0 ];do r=$[r*$[n%10]];n=$[n/10];done;echo $r #解法2 read n; echo $[1$(sed -r 's/(.)/*\1/g'<<<$n)]
Editor Settings
Theme
Key bindings
Full width
Lines