Girilen Değere Göre Kare Oluşturan Program

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("bir sayı girin :");
            int a = Convert.ToInt32(Console.ReadLine());

            for (int i = 1; i <=a ; i++)
            {
                for (int j = 1; j <=a ; j++)
                {
                    Console.Write("* ");
                }
                Console.WriteLine();
            }
        }
    }
}




Yorum Gönder

0 Yorumlar