6. How to program in C# - FOR LOOPS - Beginner Tutorial

  Рет қаралды 289,883

Brackeys

Brackeys

Күн бұрын

Пікірлер: 302
@kvd2018
@kvd2018 8 жыл бұрын
There are 2 basic shortcuts for lazy programmgers like me : cw tab tab (makes Console.Writeline and safes like 2 seconds) for tab tab (creates the for loop which safes about 6-10 seconds)
@dangerranger4780
@dangerranger4780 8 жыл бұрын
he told this thing in Arrays part :D
@1989Lachapelle
@1989Lachapelle 7 жыл бұрын
Thank you for the advice.
@LegendaryWizardPS
@LegendaryWizardPS 7 жыл бұрын
Amazing
@sakurachan9088
@sakurachan9088 6 жыл бұрын
Cyu Agen saw your name on a meme on Fb
@danzheen
@danzheen 6 жыл бұрын
Thank you!
@varunramakrishnan2284
@varunramakrishnan2284 10 жыл бұрын
"I've been really busy with some projects" *moves minecraft to hidden stuff folder*
@icx8417
@icx8417 9 жыл бұрын
You get it !!!
@magnusm4
@magnusm4 9 жыл бұрын
+Varun Ramakrishnan he's been working on minecraft mods XD
@ghostinclouds4311
@ghostinclouds4311 8 жыл бұрын
+magnusm4 maybe or he was doing stuff with command blocks it's kinda similar to koding
@Phantom-pr7xq
@Phantom-pr7xq 8 жыл бұрын
xD
@Mega-ch5ku
@Mega-ch5ku 7 жыл бұрын
Alex Suxiashvili nah it isn't similar
@vikkosti
@vikkosti 8 жыл бұрын
You should mention that the declared variable in the for loop is only local and can't be used outside the for loop
@Brackeys
@Brackeys 8 жыл бұрын
+Victor Franjo Yep, thanks for pointing that out :)
@vikkosti
@vikkosti 8 жыл бұрын
No problem, thank you for the excellent beginner course!
@gunzdevelopers
@gunzdevelopers 8 жыл бұрын
for (;;) { console.writeline("spam"); }
@gwaur
@gwaur 9 жыл бұрын
I've been doing random PHP scribblings for the past, like, ten years, and I'm starting to pick up more serious programming again, starting from scratch. These tutorials bring back great nostalgia from 15-20 years ago when I did stuff just like this with QuickBasic and I was so happy. Thanks, Brackeys!
@brokenglass1330
@brokenglass1330 8 жыл бұрын
I just did this: for (int i = 0; i
@eaglebaize
@eaglebaize 9 жыл бұрын
Learning C# to assist my team in a project class. These videos are wonderful! Thank you so very much! Next thing to study for the project: Unity.
@kevmscotland
@kevmscotland 10 жыл бұрын
"Busy with important projects...." *Deletes Minecraft shortcut. Busy indeed.....
@nachohotdawg5634
@nachohotdawg5634 4 жыл бұрын
where r u 5 years from this comment now?
@kevmscotland
@kevmscotland 4 жыл бұрын
At the time of posting. I was finishing my honours degree in computer science and learning from resources such as @brackeys. 5 years later, I'm a Senior Software Engineer. Thanks for asking.
@nachohotdawg5634
@nachohotdawg5634 4 жыл бұрын
kevmscotland Cool man! Good luck with that!
@Tobyodd
@Tobyodd 4 жыл бұрын
where r u 5 months from this comment now?
@parkercarron4940
@parkercarron4940 4 жыл бұрын
I did the challenge by simply writing for(int i = 0; i
@algemmegla9002
@algemmegla9002 6 жыл бұрын
Regarding exercise "determine if it's an even number": Another way might be: If i /2 == int (i divided by 2 equals a whole number), then the variable is even, so continue to print and increment...else { etc, etc. } Probably would be more typing though, and I'm not sure it would understand "integer" in this syntax. But perhaps there's a way to say equals a whole number as an "alternative" to returning the remainder. (In other words, 2 divided by an odd number isn't going to return a whole number.)
@zilverman7820
@zilverman7820 6 жыл бұрын
nope if the i is incremented it will not be == 0 anymore.
@Kelisei
@Kelisei 5 жыл бұрын
I know this video is old but it will be more easy to create three Random classes one for the numbers, one for the wrong answers and another for true?, that work for me exactly as the video do and I think it's a little more easy to understand for novices.
@tomzlisavanovic5865
@tomzlisavanovic5865 8 жыл бұрын
I practiced the switch command a little. Thanks for awesome lecture! else { int diff = Math.Abs((c - (a * b))); switch (diff) { case 1: Console.WriteLine("You were so close"); break; case 2: Console.WriteLine("Close enough"); break; default: Console.WriteLine("Not correct."); break; } }
@supertunes9860
@supertunes9860 4 жыл бұрын
me seeing this in 2020 and started thinking that he said that he was sick maybe corona but again i realized that this video was uploaded past 6years
@louellabarrot5974
@louellabarrot5974 7 жыл бұрын
console.writeLine("Enter comment: "); string a = console.readLine(); Enter comment: Thaank you so much for ur vids and inspiring us, new developers. 😇
@nuclear7622
@nuclear7622 7 жыл бұрын
I don't understand the concept of "i++". I still have no idea how that makes sense. But I understood very easily how the "i += 1" works. Thanks for telling that way of of doing it too. and the even number challenge I realised that you could just do i += 2 instead.
@DriitzzCabal
@DriitzzCabal 7 жыл бұрын
i++ is the same as " apple++ " it's just a variable you named, but in this instance with the " ++ " it means it will repeat itself until the value set before it is met, "for" is a loop , " for every green apple you see , take a bite until there's no more green apple"
@masa5300
@masa5300 7 жыл бұрын
I did the same thing the op said, though Brackey used a different method to print out the even numbers which I noticed in his next vid.
@npacker7045
@npacker7045 4 жыл бұрын
Amazing explanation at 4:40
@pepis1132
@pepis1132 7 жыл бұрын
What i did for the previous video challenge was: using System; namespace ExamendeMatemáticas { class MainClass { public static void Main(string[] args) { Random numberGenerator = new Random(); int num01 = numberGenerator.Next(1, 20); int num02 = numberGenerator.Next(1, 20); int num03 = num01 * num02; Console.Write("Multiplica " + num01 + " y " + num02 + " "); int sol = Convert.ToInt32(Console.ReadLine()); int num04 = num03 - sol; int num05 = sol - num03; if (sol == num01 * num02) { Console.WriteLine(); int Correcto = numberGenerator.Next(1, 4); switch (Correcto) { case 1: Console.WriteLine("¡Enhorabuena has sacado un 10!"); break; case 2: Console.WriteLine("¡Perfecto!"); break; default: Console.WriteLine("¡Muy bien!"); break; } } else { Console.WriteLine(); if (sol < num01 * num02) { int Incorrecto1 = numberGenerator.Next(1, 4); switch (Incorrecto1) { case 1: Console.WriteLine("Has suspendido... Te han faltado " + num04 + " para obtener el resultado"); break; case 2: Console.WriteLine("No has aprobado... Te han faltado " + num04 + " para obtener el resultado"); break; default: Console.WriteLine("Puedes hacerlo mejor. Te han faltado " + num04 + " para obtener el resultado"); break; } } else { int Incorrecto1 = numberGenerator.Next(1, 4); switch (Incorrecto1) { case 1: Console.WriteLine("Has suspendido... Te han faltado " + num05 + " para obtener el resultado"); break; case 2: Console.WriteLine("No has aprobado... Te han faltado " + num05 + " para obtener el resultado"); break; default: Console.WriteLine("Puedes hacerlo mejor. Te han faltado " + num05 + " para obtener el resultado"); break; } } } Console.ReadKey(); } } }
@danielbeckerton7418
@danielbeckerton7418 7 жыл бұрын
Thanks for all of these great tutorials Brackeys. You explain everything you're doing very well. Great video!
@woosix7735
@woosix7735 4 жыл бұрын
For (int i = 1; i< 100; i += 2) { Console.WriteLine(i); } Much better than checking each time for unevenness
@boteagao8465
@boteagao8465 3 жыл бұрын
Really great videos help me a lot! hope I'd see these earlier...
@d34ddud3
@d34ddud3 4 жыл бұрын
I didn't do the showing how far off thing, but what I did do was write it to randomly select between adding, subtracting, dividing, or multiplying the two numbers. It repeats the users answer to them if they're right saying it's right and if they're wrong it'll say the answer and repeat what theirs was. If you want to see how I did it, here's the code: using System; namespace FirstConsoleProject { class Program { static void Main(string[] args) // This is a method called "Main". It is called when the program starts. { begin: // A flag to be referred to later in the program. Referred to on [lines 28, 33, 45, 50, 62. 67, 79, and 84]. Random numberGenerator = new Random(); double num00 = numberGenerator.Next(1, 5); // Generates a random number 1-4 and sets the double "num00" for [line 16] to determine which case to go to. double num01 = numberGenerator.Next(1, 11); double num02 = numberGenerator.Next(1, 11); switch (num00) // Utilizes the variable set on [Line 12]. { case 1: Console.WriteLine("What is " + num01 + " plus " + num02 + "?"); double answer = Convert.ToDouble(Console.ReadLine()); // Allows the user to input a double variable of their own. double num03 = num01 + num02; // Creates a another double variable adding the doubles from [lines 13 and 14]. if (answer == num03) { Console.WriteLine(answer + " is correct."); goto begin; } else { Console.WriteLine(answer + " is incorrect. The real answer is " + num03 + "."); goto begin; } case 2: Console.WriteLine("What is " + num01 + " minus " + num02 + "?"); double answer1 = Convert.ToDouble(Console.ReadLine()); double num04 = num01 - num02; if (answer1 == num04) { Console.WriteLine(answer1 + " is correct."); goto begin; } else { Console.WriteLine(answer1 + " is incorrect. The real answer is " + num04 + "."); goto begin; } case 3: Console.WriteLine("What is " + num01 + " times " + num02 + "?"); double answer2 = Convert.ToDouble(Console.ReadLine()); double num05 = num01 * num02; if (answer2 == num05) { Console.WriteLine(answer2 + " is correct."); goto begin; } else { Console.WriteLine(answer2 + " is incorrect. The real answer is " + num05 + "."); goto begin; } case 4: Console.WriteLine("What is " + num01 + " divided by " + num02 + "?"); double answer3 = Convert.ToDouble(Console.ReadLine()); double num06 = num01 / num02; if (answer3 == num06) { Console.WriteLine(answer3 + " is correct."); goto begin; } else { Console.WriteLine(answer3 + " is incorrect. The real answer is " + num06 + "."); goto begin; } } } } }
@rAVENisntREAL
@rAVENisntREAL 7 жыл бұрын
OMG I finally figured out why he is Brackeys. The logo is two brackets. Brackets -> Brackeys!
@ibogdan28
@ibogdan28 8 жыл бұрын
you could do the same thing just by typing: for (int i = 0; i
@InspiredProductions1
@InspiredProductions1 10 жыл бұрын
I was waiting for the whole time haha, so happy it's here :D
@MrDutchstyler
@MrDutchstyler 10 жыл бұрын
Great video you are a great teacher. And the list with even numbers was done in less than a minute :D It`s look like a lot of PHP programming but I really want to learn C#.
@gutsberserker5476
@gutsberserker5476 7 жыл бұрын
There wasnt anway i could solve challenge on video 5. as math.abs is a new syntax that you just introduced. How we ment to know this if we noobs :( p.s love your videos
@elgroxo
@elgroxo 9 жыл бұрын
Thanks for taking the time to make those awesome videos!
@galeelraglen
@galeelraglen 3 жыл бұрын
You are a great teacher!!! Thank you so much :)
@magnusm4
@magnusm4 9 жыл бұрын
Your tutorials are the most helpful I have found yet as you actually explain what ( ) does. I wish my teacher recommended this instead of mr one buying. ps. if you can answer this, have you uploaded a tutorial on how to import objects from for example maya and into Unity and how to add custom animation to them made in for example maya?. The main thing I have been planning to do is add two objects with collide in order to be able to interact with them but add a "health" bar to each piece to make them split to their own individual part. Just wanted to say that.
@Shannxy
@Shannxy 9 жыл бұрын
+magnusm4 Did you find the information you needed? and where
@magnusm4
@magnusm4 9 жыл бұрын
***** sadly no. I figured out how to import the objects but not animations yet.
@rydiaofmist8190
@rydiaofmist8190 6 жыл бұрын
When you declare a variable to increment, does it have to be declared within the for loop? Like *for (int a = 1; etc; etc) {}* Or can I declare it outside, like this? *int a;* *for (a = 1; etc; etc) {}*
@StranzaZA
@StranzaZA 4 жыл бұрын
i couldn't use Xamrin studios so instead I've used visual studio for a run around
@JordyAuto
@JordyAuto 10 жыл бұрын
Hey Asbjørn, do you think you could do user input next time? I have a program which works, but I want it so that escape ends the program and I can give the other buttons functions as well if pressed. Thanks
@HDDude1981
@HDDude1981 6 жыл бұрын
Minecraft! Some constructive feedback. I would keep in mind those who are searching a specific beginning programming concept versus those watching your tutorials from the beginning. Right away, I see at 0:41, up pops a screen of code that doesn't contain the word "FOR" in it, nor does it contain a for loop. It looks like A LOT of code. This is intimidating for beginners. I'd much rather see you start with a blank screen with no code and build the concepts from the basics. What is a For loop? Why should we use it? What is an example of its basic use? What is its intermediate-level use? Finally, how do we use it in a practical situation? Then re-incorporate the stuff from your previous videos in order to build on your concepts. Just a friendly suggestion. Cheers.
@Avionics2
@Avionics2 7 жыл бұрын
hello I started following your lessons. they are very good and very clear for a new commer like me. i was wondering if you take on GUI in C# later? i am very interested to lear GUI in C#.
@dvlmc
@dvlmc 10 жыл бұрын
Brackeys, Do you think you would be able to do reviews of some paid unity assets and give some opinions whether or not they are worth purchasing?
@Nick-lx4fo
@Nick-lx4fo 6 жыл бұрын
thanks for tuning in at *brackeys*
@gitimollikonwar9975
@gitimollikonwar9975 4 жыл бұрын
Congrats brackeys you've got 1m subscribers
@Vivi_Strike
@Vivi_Strike 7 жыл бұрын
I like how you give me a challenge in the last episode to make it guess how far i am from the correct number answer but don't show me anything at all required to make that, like the math.abs and diff. It was impossible challenge...
@faneyte66
@faneyte66 5 жыл бұрын
The way I did it before watching the answer was to include the formula (num01*num02 - answer) in the middle of each wrong response in the switch loop. For instance: Console.WriteLine("Your answer was off by " + (num01*num02 - answer) + ". You better try again! ") Sure you can get negative numbers as a response, but it still let's you know how far off you were from the right answer; so it was indeed possible to make it happen without any new skills :) I know this was 2 years ago but I hope this helps someone learning from Brackeys now like myself!
@tylerwaters20
@tylerwaters20 5 жыл бұрын
//@@faneyte66 yeah i did pretty much the same thing but stored the number they got it wrong by in a variable int rangeOfFailure = answer - num1 * num2; //then if you want to make the negative numbers positive you can do this if (rangeOfFailure < 0) { rangeOfFailure = -rangeOfFailure; } //then print Console.WriteLine("Unlucky you were wrong by " + rangeOfFailure + " . The answer was " + num1 * num2 ); Console.ReadKey(); // or put it in the switch statement switch (rangeOfFailure) { case 1: Console.WriteLine("Unlucky you were wrong by " + rangeOfFailure + " . The answer was " + num1 * num2 ); break; case 2: Console.WriteLine("that answer was incorrect you were wrong by " + rangeOfFailure + " .The answer was " + num1 * num2); break; default: Console.WriteLine("you can do better than that you were wrong by " + rangeOfFailure + " . The answer was " + num1 * num2); break; }
@MrSale1990
@MrSale1990 10 жыл бұрын
Wow, just watched number 5 , and woola , got 6 part :D Thanks man !
@ziauddin1543
@ziauddin1543 8 жыл бұрын
Can you help with a small problem in my code? The message says "expected" } else { int diff = Math.Abs(answer - (num01 * num02)); if (diff == 1) { Console.WriteLine("You are so close!"); } else if (diff
@Rarests
@Rarests 8 жыл бұрын
Please copy and paste all your code so I can see whats wrong. The problem doesnt appear to be in that segment
@denoizewan7999
@denoizewan7999 5 жыл бұрын
Concerning the challenge for the Switch statements, I made mine that has different responses whether the answer to the multiplication problem is right or wrong. I tried idiot-proofing my program. By that I mean what if the user entered a string value rather than an integer value in answering the multiplication question? I thought the "else" part of my IF statement covers it, but my program just encounters an error whenever I put in a string value to answer the multiplication question.
@blenderremastered9959
@blenderremastered9959 5 жыл бұрын
how long have you been programming Brackeys i need motivation.
@toivomerilainen1970
@toivomerilainen1970 9 жыл бұрын
This is a great copy & paste excercise, but unfortunately even what you call "basics" is too complicated for me. The program works, but I'm not understanding the magic behind it. I'm not learning *why* this works.
@AdiHasArrived
@AdiHasArrived 7 жыл бұрын
It is alright if you do not understand programming at first. Make sure you know what each word and line of the code does. Keep practising. The magic works because you implemented a code whose task is to make the magic work.
@pipsqeak7104
@pipsqeak7104 4 жыл бұрын
@@AdiHasArrived I gotta keep the chain going. One response every two years! also I dont understand either.
@AdiHasArrived
@AdiHasArrived 4 жыл бұрын
@@pipsqeak7104 hahahha you just gave me nostalgia now that I look back at these days
@qriosvale3560
@qriosvale3560 8 жыл бұрын
lol, love the intro, just placing minecraft into the "hidden stuff" folder
@puct9
@puct9 8 жыл бұрын
Just a little bit more can make a whole video a lot nicer.
@cloroxbleach1652
@cloroxbleach1652 6 жыл бұрын
hi
@HYBRIDLqTHEORY
@HYBRIDLqTHEORY 6 жыл бұрын
7:35 it dont starts at Zero on my windows 7 device with visual studio 2015
@Rarests
@Rarests 8 жыл бұрын
Answer: for (int i = 1; i < 101; i++) { if (i % 2 == 0) { Console.WriteLine(i); } } Console.ReadKey();
@alexslavski5056
@alexslavski5056 7 жыл бұрын
Please tell me that in the beginning of the video you were referring to a voxel engine for Unity that you have complete by now!!! :-)
@عالمانميوالكرتون-ب2ه
@عالمانميوالكرتون-ب2ه 7 жыл бұрын
thank you very much for this course it's intersing for me
@Sachin-ux5zd
@Sachin-ux5zd 7 жыл бұрын
type his on notepad and save it with the a .bat at the end. E.G script.bat @echo off :1 start www.google.com goto :1
@121Gamerscom
@121Gamerscom 10 жыл бұрын
i was looking forward to lesson 7 are you making more or is this the last episode ???
@GordKeen
@GordKeen 9 жыл бұрын
This has made me understand that i clearly do not like computers enough because this is to hard for me and its just c# the easiest to learn. Time to find a new career.
@evolveknowledge1303
@evolveknowledge1303 9 жыл бұрын
Dreage Not really, in terms of programming languages I would say python would be the easiest, then skipping to Javascript which is easier to learn than C# but can still offer most of the functions that C# has
@magnusm4
@magnusm4 9 жыл бұрын
+EvolveKnowledge javascript is baby compared to Java and c#
@razshneider2375
@razshneider2375 6 жыл бұрын
what is the different between while and for?
@angelopezreno2611
@angelopezreno2611 8 жыл бұрын
That comercial is insane, great!
@engineerkian8060
@engineerkian8060 9 жыл бұрын
Thank You... You make great tutorials!
@sebastianjimenez2184
@sebastianjimenez2184 4 жыл бұрын
This might be an obvious question, but does the program run the code top to bottom, or bottom to top? I know that in processing it runs bottom to top, so I wasn't sure what it would be here.
@ronaldortiz7173
@ronaldortiz7173 6 жыл бұрын
string[] array = { "John", "Wayne", "Jake", "Emmett", "James" }; for (int i = 0; i < array.Length; i++) { Console.WriteLine(array[i]); } Console.ReadKey(true);
@HazemEl-u6w
@HazemEl-u6w 8 жыл бұрын
Brackeys can you please lower the brightness of your client it is hard to see the letters if your not in full screen BTW thanks for the videos i love it!
@jkarateking9187
@jkarateking9187 10 жыл бұрын
When's the next video going to be? I hope it's soon as I am enjoying this series :D
@kenaida22
@kenaida22 4 жыл бұрын
How do I create a Switch state for a range of numbers? For example: I want a case for number between 1-50, another case for numbers 51-100, another case for number for 101-150
@hardwaregawd2902
@hardwaregawd2902 9 жыл бұрын
i came up with this: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication3 { class Program { static void Main(string[] args) { Random numbergenerator = new Random(); test: int value1 = numbergenerator.Next(1, 111); int value2 = numbergenerator.Next(1, 111); Console.WriteLine(value1 + " + " + value2 + " is:"); int answ = Convert.ToInt32(Console.ReadLine()); if (answ == value1 + value2) { int responsetrue = numbergenerator.Next(1, 4); switch (responsetrue) { default: Console.WriteLine("Correct!"); break; case 1: Console.WriteLine("Awesome, you did it!"); break; case 2: Console.WriteLine("Congrats, it was correct!"); break; } } else if (answ < value1 + value2) { Console.WriteLine("Bad luck, you were " + (value1 + value2 - answ) + " off."); goto test; } else { int responsefalse = numbergenerator.Next(1, 4); switch (responsefalse) { default: Console.WriteLine("Better luck next time, you were " + (answ - (value1 + value2)) + " off."); goto test; break; case 1: Console.WriteLine("Come on, try again :), you were only " + (answ - (value1 + value2)) + " off"); goto test; break; case 2: Console.WriteLine("You were " + (answ - (value1 + value2)) + " off"); goto test; break; } } } } }
@Vider7CC
@Vider7CC 10 жыл бұрын
Hey, could you make a video about interfaces?
@Cube189
@Cube189 10 жыл бұрын
What's with the warning the console is showing? Also, doesn't Math.Abs require any Math library to be included?
@horussolis9577
@horussolis9577 7 жыл бұрын
I got it to finally work bbut it wasn't pretty because I didn't know about math.abs
@youagain7543
@youagain7543 6 жыл бұрын
I think the while just the same as for loop In the for loop you do the incrementation in braces that's it
@TrueWeebKing
@TrueWeebKing 6 жыл бұрын
You again? A while loop is better for using a Boolean
@XstylePheonyX
@XstylePheonyX 10 жыл бұрын
"I have been busy with things" *hides minecraft* :D
@shockkuuu
@shockkuuu 7 жыл бұрын
"been busy with some important projects" casually moves minecraft to hidden stuff folder. 0:14
@The_Trucker_Gamer
@The_Trucker_Gamer 5 жыл бұрын
How do you use a for loop if you want it to repeat a message to the users input 3 times? Like using it with numbers is easy but using it for a Console.ReadLine(); 3x I can't figure out. For example; You ask a user to Guess a number between 1 and 10. You only want them to have 3 guesses before the compiler closes. If they guess right say "you win" If they guess wrong say "guess again" I only want it to ask them to guess again twice and after the third guess the cmd closes. Can you make this video?
@ashwinpande7095
@ashwinpande7095 8 жыл бұрын
Challenge:- for (int i = 2; i
@Kjobbit
@Kjobbit 7 жыл бұрын
can anyone explain what i++ exactly does? I was under the impression it re-added the value of i to itself when the code looped back if the value of i was under 10 but then when he changed it to zero he lost me, surely that will just result in an infinite string of zeros?
@rhysmarchant-ludlow8211
@rhysmarchant-ludlow8211 10 жыл бұрын
Yay, I was waiting for this one :) Thanks :) :) :)
@nicksprogress613
@nicksprogress613 7 жыл бұрын
i love how at 3:25 your like i dont need that code just a simple program we didnt really work on lol
@PercivalQyou
@PercivalQyou 8 жыл бұрын
how come if I type for(int i = 1, i
@sulfasolate
@sulfasolate 8 жыл бұрын
+Hernando Chandra put ";" instead of "," for i = 1
@6y428
@6y428 4 жыл бұрын
Wow actually C# has a lot in common with Roblox Lua ,in roblox we'd say like "for i, v do (we set i and v to a value) end"
@ekhliousful
@ekhliousful 9 жыл бұрын
Math.Abs() to get the absolute doesn't work for me , Any Suggestions/explanation?
@raisin4406
@raisin4406 6 жыл бұрын
Here’s my solution to the challenge: int remainder; for (i = 0; i
@roran-san
@roran-san 9 жыл бұрын
Good vid bruh, much appreciated
@juniorbrpr
@juniorbrpr 10 жыл бұрын
I'm not able to run NET framework 4 because i am running a 32bit OS. Is there any way around this?
@himynameis2739
@himynameis2739 10 жыл бұрын
The .NET framework runs on both 32 and 64 bit operating systems. You can install it fine from the Microsoft site.
@6equj589
@6equj589 6 жыл бұрын
for (int i = 0; i
@darkkidnessgaming7893
@darkkidnessgaming7893 7 жыл бұрын
Thx this helped me with learning my exam haha 😂
@fsaforosaforo6338
@fsaforosaforo6338 7 жыл бұрын
Hi, I having problem with for (int counter=0; counter
@alexbrony3984
@alexbrony3984 10 жыл бұрын
Can I put for loop inside of the if statement?
@himynameis2739
@himynameis2739 10 жыл бұрын
You can put a for loop inside an if statement or an if statement inside a for loop. No problem. Just make sure you have your statement in the right place (within the right set of curly brackets for when you want it to run).
@TheKarolans
@TheKarolans 10 жыл бұрын
Expecting a Minecraft mod from you soon! :D
@COLLAXHD
@COLLAXHD 10 жыл бұрын
THANK U SO MYCH BRACKEYS
@kubkub7156
@kubkub7156 9 жыл бұрын
Hey umm . . A bit off topic, but when I press AltGr + X, something like screenshot taker appears (using Windows 8) I dont know how to turn it off :/
@themeeman
@themeeman 8 жыл бұрын
+Proxy, The Hornet POX *very off topic
@ThickUP
@ThickUP 6 жыл бұрын
Find the power button located somewhere on your computer. It will immediately close the capturing device.
@DocterKankle
@DocterKankle 5 жыл бұрын
thank you so much
@LizzyRBLX
@LizzyRBLX 9 жыл бұрын
This looks a lot from what I learned from javascript :P
@Mask60YT
@Mask60YT 7 жыл бұрын
i didnt know that the math.abs existed so i had to write a whole bunch of other code to make it so if you went over it would give you how much you went over
@JustCallMePCra
@JustCallMePCra 8 жыл бұрын
do you still make videos? I looked at your fb page and nothing new has been posted
@boylmao8661
@boylmao8661 8 жыл бұрын
"Really busy of some important projects" *Drags Minecraft inside the hidden stuff*
@MachinistakaxERo
@MachinistakaxERo 6 жыл бұрын
wow did we rellay just watch the same video??
@AnasMations
@AnasMations 8 жыл бұрын
i love programming
@michaeldellorfano7572
@michaeldellorfano7572 8 жыл бұрын
The else statement from homework 5 doesn't have to be there. The else statement after the case 3 break before the in diff = math.Abs part. A error pops up with that else satement being there and the program wont run... Honestly though thank you for these tutorials I'm learning a lot
@sergiomarinpetersen6879
@sergiomarinpetersen6879 10 жыл бұрын
this is so much like javascript for example the for loop in exactly same syntax same as the switch and if else statements. The major difference is that instead of console.log here it is Console.WriteLine and instead of prompt(); here is Console.ReadLine(); Intresting.
@dequan300
@dequan300 6 жыл бұрын
Public static void main {weather(); Console.Read(); } Public static void weather() {Console.Writeline("what's the weather like out there ? "); String wethttemp = Console.ReadLine(); Int tempnum = int.Parse (wethttemp()) tempnum= (1,21); Switch (5,10) { Case(6) Console.WriteLine ("that's pretty cold"); Break; } } I think that's right I'm not at a computer to check.
@DeaMikan
@DeaMikan 10 жыл бұрын
Wonderful!
@JC-ov8ko
@JC-ov8ko 10 жыл бұрын
Keep the cool stuff coming dude! And yes, your voice sounds weird...
@chasestacy922
@chasestacy922 8 жыл бұрын
i can write my code but i cant run it it just gives me a build error and says check the build logs. Dont know where those are so it's not helpful. Help?
@ToskersCorner
@ToskersCorner 8 жыл бұрын
Still need help?
@pabloalmaguer4311
@pabloalmaguer4311 9 жыл бұрын
Could you give me your wallpaper's download link? Please
@youagain7543
@youagain7543 6 жыл бұрын
Most of c# is Same as CPP As I have learned CPP I find it easy to learn c#
@areg7182
@areg7182 9 жыл бұрын
lol u were playing minecraft lol. but still u are the best tutor :)
@whiiboi
@whiiboi 10 жыл бұрын
How do you create third person rpg games
@Octamed
@Octamed 10 жыл бұрын
Nice. But man those { on the previous line bug me! Beginners get super confused by that style I find.
7. How to program in C# - WHILE LOOPS - Beginner Tutorial
12:05
C# methods 📞
6:05
Bro Code
Рет қаралды 62 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 660 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 18 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 54 МЛН
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 11 МЛН
For Loop in C# with Example | C# Tutorial for Beginners
15:41
How to Program in C# - Arrays (E05)
17:01
Brackeys
Рет қаралды 448 М.
11. How to program in C# - INHERITANCE - Beginner Tutorial
14:08
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 6 МЛН
While Loops | C# | Tutorial 18
9:10
Giraffe Academy
Рет қаралды 46 М.
How To PLAN your Game as a Solo Developer
16:26
Heartbeast
Рет қаралды 524 М.
9. How to program in C# - ARRAYS - Beginner Tutorial
24:21
Brackeys
Рет қаралды 354 М.
Learning C# In A Week... Otherwise I Fail University
9:04
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 660 М.