Tuesday, 29 October 2019

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

For...For...Loop(Nested Loop) Condition and Find * pattern_23
            ///123452345
            ///2345 2345
            ///345   345
            ///45     45
            ///5       5
       int i, j, n;
            Console.Write("Enter number of lines.....>");
            n = Convert.ToInt32(Console.ReadLine());
            for (i = 1; i <= n; i++)
            {
                for (j = i; j <= n; j++)
                    Console.Write(j);
                for (j = 1; j <= 2 * i - 3; j++)
                    Console.Write(" ");
                if (i == 1)
                {
                    j = i + 1;
                }
                else
                {
                    j = i;
                }
                for (; j <= n; j++)
                    Console.Write(j);
                Console.ReadLine();
            }
https://www.youtube.com/channel/UCKLRUr6U5OFeu7FLOpQ-FSw/videos

1 comments:

  1. The Buffet at Wynn Las Vegas | Oyster.com
    The Buffet at Wynn Las 유흥싸이트 Vegas has 365 bet always been a favorite! We 슬롯 머신 사이트 offer the freshest, most authentic breakfast and lunch 사설토토사이트 prepared 호날두 주니어 in Las Vegas.

    ReplyDelete