If you like the video, share it with your friends on these social sites:

 

Title: C Programming Tutorial - 6 - While Loops

Added: Feb 28, 2009

Author: thenewboston

Duration: 7:55

Description:
Part 7 - http://www.youtube.com/watch?v=z773Xu4-kIYAll of this code is FREE on my website http://thenewboston.com

Related Videos:

Videos related to 'C Programming Tutorial - 6 - While Loops'

Channel: Howto

Tags: cool  programming  bucky  thenewboston  language  if  else  statements 



cool  programming  bucky  thenewboston  language  if  else  statements 

Youtube Comments: 209

hardstylegronne Says:

Jan 25, 2012 - a funny combo you can play whit.int loopcount;int hotdogs;int total;int average;int rounds;total = 0;loopcount = 0;printf("average of hours on the computer. how many days?\n");scanf("%d", &rounds);printf("average of hours spent on the computer?\n");while(loopcount < rounds){printf("hours spent playing today:");scanf("%d", &hotdogs);total = total + hotdogs;loopcount = loopcount + 1;}average = total/rounds;printf("You spend an average of %d hours a day\n", average);

hardstylegronne Says:

Jan 25, 2012 - i know the beginning and the end not there sorry...

tadm123 Says:

Feb 12, 2012 - im getting 124498 everytime as average for some reason

bondservant4Him Says:

Feb 12, 2012 - you need to initialize average to 0 before using it

bondservant4Him Says:

Feb 12, 2012 - pardon me i meant to say make sure total is initialized to 0

karabera123 Says:

Feb 15, 2012 - Now I'm hungry for hotdogs

MrKiller00224 Says:

Feb 21, 2012 - How can you make 7 tutorials with the end bracket indented, it's making me crazy :p

dheer730 Says:

Feb 22, 2012 - wooowe man a while loop that would't end and goes on forever!!! thats like the while loop from hell that would't die.... that would execute the statement on my pc forever scary stuff bucky scary stuff right there....anything that would't die scares me

JJStuffEngineering Says:

Mar 2, 2012 - yeah and he's free :Pgreetings and respect JJ

jasonpaolotariman Says:

Mar 5, 2012 - confusing!! >.< y average??

dcmmoney Says:

Mar 5, 2012 - mine keeps say source not found

meetajhu Says:

Mar 20, 2012 - best is to use Microsoft Visual Studio 2011

Rhusker88 Says:

Apr 9, 2012 - printf("Bucky = Programming Chuck Norris")

Helena Bisby Says:

Apr 10, 2012 - <3 you bucky xxxxxxxxxxxx

Shegg77 Says:

Apr 11, 2012 - I wouldn't really advise the use of beta software for development, you're better off using VS10 until you get the hang of programming.

SInnerMario Says:

Apr 12, 2012 - i watched and coded, variations that also work :counter++; is the same as counter = counter+1;printf("Average # of eaten Hotdogs in %d days is %d!\n",days,total/days);

TheDavmike Says:

Apr 19, 2012 - i did.. and it said the average was 1686776. any ideas?

bondservant4Him Says:

Apr 20, 2012 - dont forget to set average to 0 before you use it

foreverbeauty90 Says:

Apr 29, 2012 - This might be a silly question but Is there a specific reason you used printf instead of cout <

Leonardo Shimabukuro Says:

Apr 30, 2012 - boolean agree = true;if (agree == true) then{System.out.println("I agree!");}We speak different languages

dishpar17 Says:

May 15, 2012 - Bucky Roberts,we love you :)

darkinin Says:

May 23, 2012 - You could have just put "agree" in your if statement. :P

dcruz453 Says:

May 25, 2012 - comment.c:1: error: syntax error before string constant

ZycloneValkyrie Says:

May 29, 2012 - Thank you! This is so helpful! Im passing my CS class with help from your videos :)

Shopping | prank calls | Wholesale products | english movies | prank calls | proxy | links | prank call

Topfacebookvideos funny arabic videos

Privacy Policy