Compare commits

...

3 Commits

Author SHA1 Message Date
8bf03aa5b8 Edit readme again 2022-03-26 15:15:55 +01:00
dd2a0a1f5d Edit readme 2022-03-26 15:15:26 +01:00
d408dc4da2 Removed redundant if condition 2022-03-26 15:13:26 +01:00
2 changed files with 4 additions and 4 deletions

View File

@@ -4,3 +4,7 @@
Dato un numero intero n, produrre in output un triangolo rettangolo in cui i cateti sono lunghi n e il perimetro sia delineato con il carattere * in ogni punto.
I cateti devono essere in alto e a sinistra. Esempio, dato n=5:
## Come eseguire
Lanciare ```./Triangles.sh``` oppure ```bash Triangles.sh```

View File

@@ -11,10 +11,6 @@ printf "\n"
if [ $lato == 1 ]
then
echo "*"
elif [ $lato == 2 ]
then
echo "**"
echo "*"
elif [ $lato -lt 1 ]
then
echo "Lato non valido"