Learn C# for beginners: 35 - Useful Array Methods

  Рет қаралды 6,932

Jesse Dietrichson

Jesse Dietrichson

Күн бұрын

If you enjoyed this video please comment below and give me a thumbs up! It goes a long way.
If you want to keep watching these videos make sure to subscribe!
You can contact me at:
Twitter: / jdprogramming
For business Inquires please email at: JDProgramming@Outlook.com

Пікірлер: 9
@arkplato2186
@arkplato2186 2 жыл бұрын
Wonderful way of teaching, very addictive.
@cutecat3382
@cutecat3382 7 жыл бұрын
Great tutorials, easy to understand very important topics made easy. Thanks.Those very fast learners, DO NOT MISS THE EXERCISES.
@destructioncorp
@destructioncorp 7 жыл бұрын
Do you believe it would be more efficient to first sort an array and use binary search, or to just use sequential search?
@somegurl3737
@somegurl3737 7 жыл бұрын
Do you have any videos on how to get the sum of even number in an a array elements and sum of odd number in an a array elements using for loops?
@DeadVenomMinecraft
@DeadVenomMinecraft 7 жыл бұрын
+Some Gurl Here you go, int sumOfEven; int sumOfOdd; for (int number in array) { // Modulo operator is %, this divides number by 0 and returns the remainder // If the remainder is zero, then it means the number is even if((number % 2) == 0) { sumOfEven++; // Increment the even numbers } else { sumOfOdd++; // Increment the odd numbers. } }
@abhaygiri247
@abhaygiri247 5 жыл бұрын
please make lectures on data structure using C#.
@christianangelojamesvalisn4440
@christianangelojamesvalisn4440 8 жыл бұрын
Is this channel still active? Can you please help me with this problem Create a C# program that asks the user for 10 real numbers then computes and displays the average of the numbers.
@IqbalNazirSumon
@IqbalNazirSumon 8 жыл бұрын
Hi Christian, no one will solve your problem like this. You have to try something and while trying if you face any problem, only then you can ask for help. I am also a beginner in C#. After seeing your comment, I tried to solve this. But I hope you find some motivation from me and start learning yourself!! Good luck!!! static void Main(string[] args) { Console.WriteLine("Hit enter and type ten real numbers"); double[] realNumArray = new double[10]; double sum = 0; double avg = 0; for (int i = 0; i < realNumArray.Length; i++) { Console.WriteLine("Type real number {0}: ", i+1); realNumArray[i] = double.Parse(Console.ReadLine()); sum += realNumArray[i]; } avg = sum / (realNumArray.Length); Console.WriteLine("The average of the real numbes is {0}", avg); Console.ReadLine(); }
@chuchof3tt669
@chuchof3tt669 5 жыл бұрын
if anyone is curious like me and tried this, if you want to order the Array but get the result in reverse, do this: //REVERSE THE ORDER IN ORDER int[] myArray = { 10, 5, 7, 2, 55 }; Array.Sort(myArray); for (int i = myArray.Length - 1; i >= 0; i--) { Console.WriteLine(myArray[i]); } i just Lesson 33's logic for this.. hope it helped someone!! :)
Learn C# for beginners: 36 -  Brief Look at Multidimensional Arrays
19:33
Jesse Dietrichson
Рет қаралды 6 М.
Learn C# for beginners: 34 - Searching an Array Using Loops
18:33
Jesse Dietrichson
Рет қаралды 15 М.
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 115 МЛН
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 11 МЛН
Lamborghini vs Smoke 😱
00:38
Topper Guild
Рет қаралды 64 МЛН
Learn C# for beginners: 32 -  Creating an Array
12:22
Jesse Dietrichson
Рет қаралды 6 М.
TOP 10 C# Array Methods (Beginner Tutorial)
15:47
Daniel Simionescu
Рет қаралды 11 М.
Learn C# for beginners: 42 -  Pass by Reference vs Pass by Value
16:54
Jesse Dietrichson
Рет қаралды 21 М.
Learn C# for beginners: 26 -  Do While Loops
10:31
Jesse Dietrichson
Рет қаралды 5 М.
Learn C# for beginners: 54 -  Get and Set Methods
16:44
Jesse Dietrichson
Рет қаралды 30 М.
C# - Arrays
14:36
TutorialsPoint
Рет қаралды 115 М.
Learn C# for beginners: 33 -  Using Loops with Arrays
16:53
Jesse Dietrichson
Рет қаралды 17 М.
Learn C# for beginners: 3 - Displaying Variables in the Console
15:05
Jesse Dietrichson
Рет қаралды 10 М.
Learn C# for beginners: 41 -  Creating Methods
19:30
Jesse Dietrichson
Рет қаралды 7 М.
Learn C# for beginners: 53 -  Constructors
14:02
Jesse Dietrichson
Рет қаралды 8 М.
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 115 МЛН