Suppose we want to display hello on output screen five times in five different lines.
We might think of writing either five printf statements or one printf statement consisting of constant “hello\n” five times.
What if we want to display hello 500 times?
Should we write 500 printf statement or equivalent ?
Obviously not.
It means that we need some programming facility to repeat certain works. Such facility in Programming Languages is available in the form Looping Statements.
Continue reading “Programming with C – “Control Statements – Loop”- Lecture 3″