The Complete C# Developer CourseTwitter : ahmadmohey85 Ahmad Mohey | Full Stack Developer E-mail : ahmadmohey@gmail.com... The Fundamentals of C# Part 3Twitter : ahmadmohey85 Ahmad Mohey
Trang 1The Complete C# Developer Course
Twitter : ahmadmohey85
Ahmad Mohey | Full Stack Developer
E-mail : ahmadmohey@gmail.com
Trang 2The Fundamentals of C# Part 3
Twitter : ahmadmohey85
Ahmad Mohey | Full Stack Developer
E-mail : ahmadmohey@gmail.com
Trang 3The Fundamentals of C# Part 3
Twitter : ahmadmohey85
Ahmad Mohey | Full Stack Developer
E-mail : ahmadmohey@gmail.com
Loops part 1
Trang 4For loop
for loop executes a block of statements repeatedly until the specified condition
returns false
for (int i=1; i <= 10; i++)
Trang 5The Fundamentals of C# Part 3
Twitter : ahmadmohey85
Ahmad Mohey | Full Stack Developer
E-mail : ahmadmohey@gmail.com
Loops part 2
Trang 6while
do while
Trang 7The Fundamentals of C# Part 3
Twitter : ahmadmohey85
Ahmad Mohey | Full Stack Developer
E-mail : ahmadmohey@gmail.com
Loops part 3
Trang 8Nested loops
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
Trang 9The Fundamentals of C# Part 3
Twitter : ahmadmohey85
Ahmad Mohey | Full Stack Developer
E-mail : ahmadmohey@gmail.com
Loops exercise
Trang 10Even Numbers
2 4 6 8 10 12 etc 100
Trang 11Triangle
0
0 0
0 0 0
0 0 0 0
0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
Trang 12The Fundamentals of C# Part 3
Twitter : ahmadmohey85
Ahmad Mohey | Full Stack Developer
E-mail : ahmadmohey@gmail.com
Arrays
Trang 13Arrays
Trang 14Arrays
Trang 15The Fundamentals of C# Part 3
Twitter : ahmadmohey85
Ahmad Mohey | Full Stack Developer
E-mail : ahmadmohey@gmail.com
Assignments (4, 5, 6)
Trang 16Assignment No.4: (Upside Down Triangle)
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0
0 0 0 0
0 0 0
0 0
0
Trang 17Assignment No.5: (Months & Days)
January - 31 days
November - 30 days
Trang 18Assignment No.6: (Dice Roller)
Roll dice? (yes, no)
Yes
New dice no is 1
Roll dice? (yes, no)
yes
New dice no is 3
Roll dice? (yes, no)
YES
New dice no is 5
Roll dice? (yes, no)
yeS
New dice no is 1
Roll dice? (yes, no)
no