C Programming Tutorial - 27 - for Loop

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

You are way better at explaining this than my university teachers. <3 Thx so much.

eszmeraldajazminkovacs
Автор

finally, someone who can explain this in ungga bungga style for my ungga bungga brain

mizz
Автор

Thank you for posting these tutorials, I am so lost in my intro to C class but these videos are helping me out!!

aakashthakor
Автор

At university, Professor teaches us one year but this course around 3 or 4 hours fully covered all topics and better than university courses courses.

bobokhonrajabov
Автор

Dude you explain this much better than the book. Appreciated very much. Thank you

dchanthavong
Автор

That's what I was looking for. Thanks!!

vhworks
Автор

thank u so much all the way from saudi arabia

shdsmovie
Автор

Freaking piece of cake!! bcos bucky isszz

suprabhkumar
Автор

joo guys i really enjoy this video learning
#include <thabza.m>

thapelomashapa
Автор

for now that was exacly a "while" loop. same everything, not even a short cut
just typing the condition up instead of down

someone-qlpu
Автор

is there anyway in codeblocks to see what included files stand for? like can i click somehow on <stdio.h> and see what include?

Leverquin
Автор

pls guys what is the code for this program?

Write a program that accepts time in “seconds” format and prints it in minutes and seconds.
For example if you enter 89 it must print : 1:29 (you can use % modulus operator to compute
the remaining of a division)

victordamisa
Автор

I was trying to do something similar to bacon += 8 in an array. I was wanting to add all the odd elements and all the even elements of an array. for instance:

int array[10];
int i, evens, odds, total;

for(i=0;i<10;i++)
scanf("%d", &array[i]);

for(i=0;i<10;i+2)
evens += array[i]

for(i=1;i<10;i+2)
odds += array[i]

total = odds - evens;

printf("%d", total);

It didn't work correctly. Does that code look ok or is there a better way to do it? I ended up doing it by using
for(i=0;i<10;i++ + i++)

but i don't like the way that code looks. Surely there is a better way to write it.

bigmacdoubleyouv
Автор

int main()
{
int banana;

for(banana==5; banana<=100;banana+=8){
printf("Banana is:%d\n", banana);
}

return 0;
}


If I changed the banana=0 to banana==0, the first output is 2. And no matter what number I put after==, the first output is 2 too. Wondering why.

yingtang
Автор

for repeating loop  while(1){code}; and for(:::);  are very usefull for programming micocontroller like avr, arm, pic...

zaharouni
Автор

i need some help need to create a loop but a user will input data.
I know what i have the program is the fish fry,
im starting at 500 and im gone 24 hours, its decreasing 10% every hour 
i have the equation to make it less but my loop is only looping once please help

cyclone
Автор

why is it that, there is no semicolon in the bacon++ ? but it worked

carlknightcoph
Автор

Its probably to dumb to ask but I will still ask,
for (i=0; i<=10;i+1)
{
printf("%d", i);
}

why does this give "1" infinite times?

divijarora
Автор

why are you not starting the for loop with bacon = 0. When you discussed arrays you made it very clear that an array starts at 0 not 1.

koolkid
Автор

After the loop, did bacon still equal 10 or did it progress to 11?

firstnamelastname
join shbcf.ru