How to perform different Pattern programs using for loop in java?

Introduction:

Hii everyone, here we are are going to learn how to perform different pattern programs using for loop.Pattern programs generally demand your mathematical skills and analysis capability else it is easy to crack one.

Description Of Program:

In the given program we are using a for loop and we run loop up to 20 which is the demand of our output series.Hope it would we helpful.

CODE:

public class Pattern {
public static void main(String[] args) {
for(int i=0;i<20;i++)
System.out.println(i*(i+1));
}

}

 

Leave a Reply