Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
304 B
0
Indexable
Never
#!/bin/bash

# Check if two parameters are provided
if [ "$#" -ne 2 ]; then
    echo "Usage: $0 <number1> <number2>"
    exit 1
fi

# Extract the two parameters
number1=$1
number2=$2

# Add the numbers
result=$((number1 + number2))

# Print the result
echo "The sum of $number1 and $number2 is: $result"
Leave a Comment