#!/bin/bash
# Version Daniel Melgar Cabello
# http://www.webmasterdani.com
# Version Daniel Melgar Cabello
# http://www.webmasterdani.com
read -p "Introduce el valor de X : " x
echo -e "\e[1;34m" "\c"
echo -e "\n Al numero anterior se aplicara la siguiente funcion \c"
echo -e "\e[1;31m" "\c"
echo -e 'f(x)=5x+(20/2)+50*x '
echo -e "\e[1;30m" "\c"
echo -e "\n\n Resultado \t" "\e[1;34m" $[$[5*$x]+10+$[50*$x]] "\n\n"
echo -e "\e[1;30m" "\c"
echo -e "\e[1;31m" "\c"
echo -e 'f(x)=5x+(20/2)+50*x '
echo -e "\e[1;30m" "\c"
echo -e "\n\n Resultado \t" "\e[1;34m" $[$[5*$x]+10+$[50*$x]] "\n\n"
echo -e "\e[1;30m" "\c"
No hay comentarios:
Publicar un comentario