You must Sign In to post a response.
• # 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
1 2
1 2 3
1 2 3 4
1 2 3 4 5
Thanks & Regards,
Minal Pandya
• Hi,

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

http://www.programmingsimplified.com/

Under C Programming you get all the codings.

Thanks,
Mani

• 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++) Console.Write(j); Console.WriteLine(); } Console.ReadKey(); } }}`
For similar exercise for practice and algorithms, you can follow the below link:
`http://www.w3resource.com/csharp-exercises/for-loop/csharp-for-loop-exercise-9.php`
Hope it will be helpful to you.

Regards,
Pawan Awasthi(DNS MVM)
+91 8123489140 (whatsApp), +60 14365 1476(Malaysia)
pawansoftit@gmail.com

• Sign In to post your comments