C for loops 🔁

preview_player
Показать описание
C for loops tutorial example explained

#C #for #loop
Рекомендации по теме
Комментарии
Автор

#include <stdio.h>

int main()
{
// for loop = repeats a section of code a limited amount of times

for(int i = 1; i <= 10; i++)
{
printf("%d\n", i);
}

return 0;
}

BroCodez
Автор

3hour studies, then 2 hours on internet. Then I went back to BroCode and understood everything in a single video.
Incredible

RvstyClvtch
Автор

Defining “index” at :46 was crucial. In a lot of videos it almost seems like it’s the name of the integer and really didn’t make any sense until you said that. Major thanks.

wjjohnsable
Автор

youre a lifesaver on my coding journey. ty for the quick video.

deleted-test
Автор

C has been helping me a lot with learning basic programming logic. It is so simple yet so complete. I'm on my first semester of S.E. and am so happy I'm studying C. Thanks BroCode for this video. Cheers!

bucharestlostboi
Автор

Thanks, bro - I was struggling to get C working so I used this tutorial as a test, going to go through the projects cuss ur really chill. I accidentally did something wrong here towards the end, and my computer was counting infinitely upwards, finally, I killed it with ctrl C lol.

It got up to 18, 31, 861! Computers sure do think fast haha!

TonkaTitan
Автор

Ah, I always assumed "i" stood for iterator but index makes more sense. Thanks for the info!

delta-a
Автор

You're far much better than my prof

johnralphbone
Автор

gg bro you just explained my whole 3 hour course this mourning that i couldnt understand

davorfister
Автор

Bro thankyou so much i watched every video but i only understood yours thankyou so much.

officerops
Автор

Thanks! i was struggling trying to figure out how to make it work and the theory book wasn't doing me any favors.

ThisIsArty
Автор

Please teach me how to set up visual studio code like yours for c language

zrafn
Автор

Why do we have 1 printed at the start each time? Does it print out before entering the cycle and why?

lenabarlow
Автор

How can you create a list of directories with each directory path name feed as input in the form a comma delimited list

ghostwavewrider
Автор

You could you maybe teach us how to make a splash screen with cycles?

gachecem_yt
Автор

In my program, I am creating a function to use in my main function. In that function I am using a for loop and am trying to return the final value of ' i ' to the main function. However my return statement never works, what am I doing wrong?
ex..
int do_something(int units)
{
for(int i = 0; units >= 10; i++)
{
units = units - 10;
}
return i;
}
I am aware I am declaring the integer i in the scope of those parantheses only, but where do I put my return statement then?

HendrikScholten-dbvg
Автор

Do you happen to have a link to the website that you used?
I'm a freshman in IT and I genuinely want to learn coding

ronianmaape
Автор

I'd like to ask smth. How do I run the code on vsc? I installed the C/C++ clang build but, it doesn't run. The output when run isn't working. Does it have smth to do with my laptop or no? I currently using a macbook btw.
I appreciate it if you could see this comment. Tyia!

anas_zimin
Автор

whatever anything I do or did or anything

ryanalnaser
Автор

im doing cs50 rn and bro i was like what are those i*s for i tried understand it myself but bruh i couldnt understand it but n ow yea i get it

iceisrllynice