Computer Science, asked by tanya2438, 1 year ago

24 99 224 399 seies in java

Answers

Answered by qwsuccess
10

The logical part of the java program for the given series is-

  • for(int i =5,i<=20,i=i+5)

       {

         System.out.print((i*i)-1)

         System.out.print(" ")

       }

  • The terms of the given series are the square of the multiples of 5 minus 1  till 399.
  • So, we construct a for loop which gives us the multiples of 5 and then print the desired term by using((i*i)-1).

Answered by 08asthakumari8a
0

Answer:

class series

{

public static void main()

{

int m=6, n=4;

for( int i =1; I<=10;I++)

{

int p=m*n;

System.out.println(p);

m=m+5;

n=n+5;

}

}

}

Similar questions