Friday, 4 October 2019

For...For...Loop(Nested Loop) Condition and Find * paittern_1

For...For...Loop(Nested Loop) Condition and Find * pattern_1
 using System;
 public static void Main()
        {    
///*
            ///**
            ///***
            ///****
            ///*****
            int i, j, n;
            Console.Write("Enter number of lines.....>");
            n = Convert.ToInt32(Console.ReadLine());
            for (i = 1; i <= n; i++)
            {
                for (j = 1; j <= i; j++)
                {
                    Console.Write("*");
                    //Console.Write("\t");
                }
                Console.ReadLine();
            }
         }
https://www.youtube.com/channel/UCKLRUr6U5OFeu7FLOpQ-FSw/videos

0 comments

Post a Comment