Bro, nie ada contoh program looping di shell,,,,
Nie screenshootnya :
Gmana hayo script kodenya????
Tnang gan, nie scriptnya :
-----------------------------------------------------------------------------------------------
echo "Ini adalah contoh piramida angka:"
for (( i=1; i<=5; i++ ))
do
for (( j=1; j<=i; j++ ))
do
echo -n "$j"
done
echo ""
done
echo -e "\033[34m Code writed by mada"
----------------------------------------------------------------------------------------------
Jumat, 21 Mei 2010
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar