-moz-user-select:none; -webkit-user-select:none; -khtml-user-select:none; -ms-user-select:none; user-select:none;

Tuesday 31 March 2015

Simple example of "for" loop

Hello and Asalam o Alikum.I hope you all are fine by the grace of Allah Almighty.
Today I am here with a new blog that contains a  simple example of for loop.
Remember that for loop is used in a condition when we know in advance how many times we want to print a certain statement,etc.So,below is the simple example of for loop.For example,I want to write "Welcome to my blog" for 10 times.So,in this case,"for" loop will be best.

Source code

khgamujtaba,C++

Output

khgamujtaba,C++

No comments:

Post a Comment