Arithmetic sequence with increasing difference || part 2 || Java programs || Java
In this, we are going to write a  program to print the 0, 3, 8, 15, 24, 35, …, 99 in series in Java.
 


class Series6
{
    public static void main(String[] args) 
    {
        int i;
        for (i = 1; i <= 10; i++) 
        {
            System.out.print((i * i - 1) + " ");
        }
    }
}
#ENJOY CODING

Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post