code for example with For loop
Example 1: code for loop
for (initializationStatement; testExpression; updateStatement)
{
// statements inside the body of loop
}
Example 2: c make loop
// Print numbers from 1 to 5
#include
int main()
{
int i = 1;
while (i <= 5)
{
printf("%d\n", i);
++i;
}
return 0;
}