Telaryon

Argumentumban megadott számokat összeszorzó

Apr 28th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.11 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. sum=1
  4. for i
  5. do
  6.     sum`expr $sum\*$i`
  7. done
  8. echo"The multiplication of the arguments is:" $sum
Advertisement
Add Comment
Please, Sign In to add comment