#!/bin/bash # Programme test2.sh # chmod a+x test2.sh; ./test2.sh B=1 while [ $B -gt 0 ] do read -p "Borne:? " B I=1 while [ $I -le $B ] do let "C=$I**2" R=`echo "sqrt($I)" | bc -l` echo "I= "$I" I^2= "$C" I^1/2= "$R ((I++)) done done echo "Fin du programme test2.sh"