CS Injection
For loop syntax
Email This
BlogThis!
Share to X
Share to Facebook
Share to Pinterest
Reference > Syntax > syntax of for loop
The syntax of for loop in c and c++ is
for(initialization; condition ; increment)
{
code
}
Example of for loop
for(a=1;a<=10;a++) /*displays hello 10 times then stop*/
{
printf("hello\n");
}
Newer Post
Older Post
Home