C Programming Tutorial 12, While Loop pt.2

preview_player
Показать описание

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

great job i love your videos you explain exactly whats going to happen step by step which makes understanding while loop concept much easier

nobazter
Автор

good method of teaching in which you also keep our level in mind and thus taught in simple way

arslankhan-moff
Автор

This is also an excellent option to introduce defensive coding. What happens when I enter a character instead of an integer? How might I get around this using other tools that have been developed? Integrating an if-else structure within the loop will take care of this.

drillsargentadog
Автор

It'd be nice if you could put the code in the description for others to see. Thanks!

Grkgermn
Автор

@iTzAdam5X oh, thanks, but I was just making a recommendation for future revisions. I'm actually an experienced programmer trying to finally learn 'C.' Thanks though for the thought--your code works well--and for these wonderful and lucid videos. Keep it up!

drillsargentadog
Автор

You said on 5:20, '...We see all these numbers are added...', Don't the while loop add up each input integer into the sum on each looping? The sum is within the body of the loop? I don't think that while loop is done lazily, as soon as you type in -1, then it adds up all the sum right?

lorenzogarcia
Автор

Amazing!!! Thanks a lot man, love your videos!!!

elkhanhamet
Автор

Insted of %d we can use %i. AM I RIGHT?

lazzy
Автор

For anyone wondering how to check if the user enters a character, you need to use a thing called Exception handling. I believe iTzAdam5X teaches it. I hope he does! If not google it later on!

sonickk
Автор

@drillsargentadog I'll PM you the code.

iTzAdamX
visit shbcf.ru