Which of the following commands creates a function in Bash that outputs the sum of two numbers?
A. function sumitup { echo $(($1 + $2)) ; }
B. command sumitup { echo $(($1 + $2)) ; }
C. function sumitup { echo $1 + $2 ; }
D. method sumitup { echo $1 + $2 ; }
E. command sumitup { echo $1 + $2 ; }
Which of the following commands creates a function in Bash that outputs the sum of two numbers?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which of the following commands creates a function in Bash that outputs the sum of two numbers?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!