C#-VisualProgramming-Lab 1
C#-VisualProgramming-Lab 1
Network Department
Lab 1
Exercise 1: Write a code that creates the following pattern:
**********
**********
**********
**********
**********
Exercise 2: Write a code that gives you the following pattern:
1
12
123
1234
12345
123456
1234567
Then, let the user specifies the number of rows.
Exercise 3: Write a code that generates the following pattern:
1234567
123456
12345
1234
123
12
1
Then, let the user specifies the number of rows.
Exercise 4: Write a code that calculates the sum of maximum 6 numbers. The program
will be stopped when you enter even number.
Exercise 5: Write a code that calculates the sum of maximum 5 numbers. The program
will skip the positive numbers from the calculation.
Exercise 6: Write a code that enters 10 numbers then calculates the number of positive,
negative and zero elements.