Power Your Software Testing 
 with AI and Cloud
Supercharge QA with AI for Faster & Smarter Software Testing

A for loop is a type of control flow statement that specifies iteration. It runs a block of code or statements repeatedly until a particular condition has been satisfied.
Syntax
for(initialization; condition; increment/decrement){    
//code or statement to be executed    
}    
Code Example
The below Java program demonstrates the working of for loop and prints table of 1.
public class ForLoopEx {  
public static void main(String[] args) {    
    for(int i=1;i<=10;i++){  
        System.out.println(i);  
    }  
}  
}  
KaneAI - Testing Assistant
World’s first AI-Native E2E testing agent.

Get 100 minutes of automation test minutes FREE!!