Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
0 views

C#-VisualProgramming-Lab 1

This document outlines a practical lab exercise for C# programming, consisting of six exercises focused on creating patterns, calculating sums, and analyzing numbers. Each exercise requires the implementation of specific coding tasks, such as generating patterns based on user input and performing calculations based on given conditions. The exercises aim to enhance programming skills in the context of pattern generation and basic arithmetic operations.

Uploaded by

gado zangana
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

C#-VisualProgramming-Lab 1

This document outlines a practical lab exercise for C# programming, consisting of six exercises focused on creating patterns, calculating sums, and analyzing numbers. Each exercise requires the implementation of specific coding tasks, such as generating patterns based on user input and performing calculations based on given conditions. The exercises aim to enhance programming skills in the context of pattern generation and basic arithmetic operations.

Uploaded by

gado zangana
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Prepared By: Snwr Jamal C# Practical

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.

You might also like