ktongue's picture
download
raw
235 Bytes
#!/bin/bash
BASKET=('pineapple' 1 'banana' 2 'watermelon' 3)
COST_PINEAPPLE=50
COST_BANANA=4
COST_WATERMELON=23
COST_BASKET=1
TOTAL=$(($COST_PINEAPPLE*${BASKET[1]}+$COST_BANANA*${BASKET[3]}+$COST_WATERMELON*${BASKET[5]}))
echo $TOTAL

Xet Storage Details

Size:
235 Bytes
·
Xet hash:
8f9b5aa57c14dd8876bc5bad679d9719e9e549db27f50a5821db463252c19a1a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.