Lesson 5.7:

C# Loop Exercises - Programming Question


Objective

C# Loop Exercises
Programming Question

Qu 1: print your name 10 times using while loop.

Qu 2: Find all the even number below 100 using do while loop.

Qu 3: Declare an array with 5 elements and print them using foreach loop

Qu 4: Find all prime number below 100 using nested for loop.

Summary

After completing this exercise you became familiar with looping statements in C#. Now next is some Other Statements in C# which is necessary to know.

BackNext