For Loop
For Loop: A for loop is a iterative control structure that allows you to write a loop that needs to execute a specific number of times.(OR ’n’ number of times taken as a input). Syntax: for(initialisation ; condition; change in value of the variable) { Body of the loop; } Example: for(int i=1;i<=5;i++) //Starting from 1 to 5 { cout<<“Hello\n”; //prints Hello } output: Hello Hello Hello Hello Hello Explanation: In the above example the loop runs 5 times , ‘i’ value starting from 1 and end value 5 incrementing at the rate of 1. Example Designs: 1) 1 12 123 1234 2) 1 21 321 4321 3) 1 212 32123 4321234 543212345 4) 1 212 32123 4321234 543212345 4321234 32123 212 1 Practicing to do designs like this in for loops can help you i