Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
 
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		
- 
				
				@qn0x noone seems to recognize renegades tbese days. Legit I once went totally unprepared to an assembly exam and wrote a no loop voting tally system. Of course it worked and of course he failed me but he said it made him laugh.
- 
				
				I had students I TA'd for insisting on using the while loop even after being introduced to for. So code like this wasn't uncommon:
 
 int i = 0;
 while (i < arraylength) {
 // do stuff with array
 i++;
 }
 
 It's as if they were either afraid of the for loop, or stated out with a while to see how it evolved and then never changed it
- 
				
				Well for always looked scary until we started using it! And once we did everyone knows there is no stop!
- 
				
				 R1cc4rd01089yIf you want to print out the numbers from 0 to 40 included it's easily to write it down into the for form... R1cc4rd01089yIf you want to print out the numbers from 0 to 40 included it's easily to write it down into the for form...
 For(int i=0; i<40; i++){cout>>i;}
 
 Just to say... :)
- 
				
				@R1cc4rd0 it was pretty confusing to me at first, too
 And to an extent it kinda still is
Related Rants
- 
						
							 nanoandrew446!rant *walks into university library* *sits down at a computer 😶* *looks around to see if anyone is look... nanoandrew446!rant *walks into university library* *sits down at a computer 😶* *looks around to see if anyone is look...
- 
						
							 Fenix14DO YOU FUCKING SERIOUSLY TELL US IN THE SECOND SEMESTER OF OUR MASTERS DEGREE THAT WE SHOULD BE CAREFUL THAT A... Fenix14DO YOU FUCKING SERIOUSLY TELL US IN THE SECOND SEMESTER OF OUR MASTERS DEGREE THAT WE SHOULD BE CAREFUL THAT A...
- 
						
							 castor-rg25 castor-rg25 !Rant
I GRADUATED FROM COLLEGE TODAY WITH MY DEGREE IN COMPUTER SCIENCE! 
Now to find a job :D !Rant
I GRADUATED FROM COLLEGE TODAY WITH MY DEGREE IN COMPUTER SCIENCE! 
Now to find a job :D







First year at uni, during c++ basis.
The professor has just finished explaining the while cycle.
Professor: We want the code to print all numbers from 0 to 40 using a counter. How would you do?
Classmate puts up his hand: we do 40 if statements and when we reach the 40th one we stop.
Professor: *face palm*
undefined
while
university