Kawand....
Ada script lagi nie....
Kali ini tampilannya seperti tangga,,,
Kumaha tah????
Pengen tao scriptnya ...
nie dia...
-------------------------------------
echo "Tangga kesuksesan..."
for (( i=1; i<=5; i++ ))
do
for (( j=1; j<=i; j++ ))
do
echo -n " |"
done
echo "_ "
done
echo -e "\033[34m Code writed by mada"
---------------------------------------
Jumat, 21 Mei 2010
Program looping dengan for versi 1
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"
----------------------------------------------------------------------------------------------
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"
----------------------------------------------------------------------------------------------
Langganan:
Postingan (Atom)