Menampilkan Bintang (Array) Bagian 2

Posted by Budi Arieyanto | Posted in | Posted on 02.38

#include<iostream.h>
#include<conio.h>

void main()
{
    int i,j;
   for (j=1;j<=5;j++)
       {
            for (i=5;i>=j;i--)
            {
             cout<<"*";
         }
         cout<<"\n";
      }
   getch();
}

Comments (0)

Posting Komentar