<ask> program buat bintang shell

Pertanyaan umum seputar distribusi Ubuntu yang menjadi distro wajib members ubuntu-indonesia.com
Post Reply
User avatar
uchil
Posts: 7
Joined: 16 Apr 2013, 17:57
Location: surabaya , indonesia

<ask> program buat bintang shell

Post by uchil » 19 Apr 2013, 11:31

input =5
*
**
***
****
*****

pkek for gimana? :confused: :(


User avatar
belthsazar
Posts: 1300
Joined: 02 Jul 2011, 04:38
Location: Surabaya, Indonesia

Post by belthsazar » 19 Apr 2013, 14:37

google


User avatar
sta
Posts: 2003
Joined: 27 Apr 2010, 09:49
Contact:

Post by sta » 19 Apr 2013, 15:29

for ($i=1; $i<=5; $i++)
{
for ($b=1; $b <=$i; $b++)
{
echo "*";
}
echo "
";
}


User avatar
uchil
Posts: 7
Joined: 16 Apr 2013, 17:57
Location: surabaya , indonesia

Post by uchil » 21 Apr 2013, 21:45

klo di python gan :(


Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests