You must Sign In to post a response.
  • Category: .NET

    Practice Exercise to solve

    Dear Sir /Mam,

    Kindly guide me that how OR where I can find "Do it your self"
    or say "Examples to Practice at own" for different chapters in .NET Tutorial?

    Like in school in Maths text book we can find few "Exercises (Sums)" that students needs to solve at their own at the end of the each Lesson (Chapter).

    E.g. --> Try to print a numbers triangle using while/ do-while/ for-while loop.
    1 2
    1 2 3
    1 2 3 4
    1 2 3 4 5
    Thanks & Regards,
    Minal Pandya
  • #767894

    I used to follow the below website for all the simplified programming for questions which you are looking for.

    Under C Programming you get all the codings.


  • #767925

    Hai Minal,
    You can use the below code snippet for your query:

    using System;

    namespace RightAngleConsoleApp
    class Program
    static void Main(string[] args)
    Console.WriteLine("Please enter the number of rows you want to print..");
    int rows = int.Parse(Console.ReadLine());
    Console.WriteLine("Below is the result:\n");
    for (var i = 1; i <= rows; i++)
    for (var j = 1; j <= i; j++)

    For similar exercise for practice and algorithms, you can follow the below link:

    Hope it will be helpful to you.

    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)

  • Sign In to post your comments