Advertisement
atanasovetr

Untitled

Jun 2nd, 2021
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.08 KB | None | 0 0
  1. #!/bin/bash
  2. $sum=0;
  3. for i in {0..$1}
  4. do
  5. $sum=$sum + $i
  6. done
  7. echo $sum
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement