Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo " ingrese un numero"
- read "a"
- echo "ingrese otro numero"
- read "b"
- function multiplicacion(){
- if [$# = 2 ]; then
- echo "parametros enviados correctamente"
- let C=$a\*$b
- echo "la multiplicacion es : $C"
- }
- function suma(){
- let C=$a+$b
- echo "la suma es : $C"
- }
- function resta(){
- let C=$a-$b
- return $C
- }
- function mayor(){
- if [ $a -gt $b ]; then
- echo "$a es mayor a $b"
- else
- echo "$a no es mayor a $b"
- fi
- }
- mayor
- suma
- multiplicacion
- resta
- echo $C
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement