Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash -e
- echo -n '元金を入力してください: '
- read amount
- echo -n '借入期間を10日単位で入力してください: '
- read term
- awk "BEGIN { loan = 1
- for(i = 0; i < ${term} / 10; i++) { loan *= 1.1 }
- loan *= ${amount}
- print \"返す金額は\" loan \"円です。\" }"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement