Visit our site: Vist and Get Free Gifts

Learn To Build: Usin loops and printin Shape

Visit our site: Vist and Get Free Gifts

Visit our site: Vist and Get Free Gifts

Tuesday, February 4, 2014

Usin loops and printin Shape

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

namespace SwitchStatmnt
{
    class Program
    {
        static void Main(string[] args)
        {

            for (int i= 1;i <= 10; i++)
            {
                for (int j = 1; j<=i; j++)
                {

                    Console.Write("*");

               
               
                }
                Console.WriteLine("");




            }
            for (int i = 1; i <= 10; i++)
            {
                for (int j = i; j <= 10; j++)
                {

                    Console.Write("*");



                }
                Console.WriteLine("");




            }



            Console.ReadKey();


        }
   
         



            }
        }
   

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home