IJUL'S BLOG

Membuat Deret Bintang sederhana pada C#

source code ini simple bgt deh,,,hhe.....,,mklum baru bljr....


namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Masukkan Jumlah Baris data= ");
            int n = int.Parse(Console.In.ReadLine());
            for (int i = 1; i <= n; i++)
            {
                for (int j = 1; j <= i; j++)
                { Console.Write("*"); }
                Console.WriteLine("\n");
            }
            Console.ReadLine();
        }
    }
}

0 komentar:

Posting Komentar

Powered By Blogger
Diberdayakan oleh Blogger.

Entri Populer

PENGUNJUNG

Buku Tamu

About Me

Foto Saya
Ijal Ferdi
there is no something special about me,,, but this blog is so special for me......
View my complete profile

Total Tayangan Halaman

Followers