Computer Science, asked by amreen115, 5 months ago

2,4,6,8,10.........upto 15 terms (print the following series) ​

Answers

Answered by BrainlyProgrammer
2

Answer:

Assuming it's a Java programming...

for(i=2;i<=30;i+=2)

{

System.out.print(i+",");

}

Answered by anindyaadhikari13
4

Question:-

Write a program to display the series.

2,4,6,8.... upto 15 terms.

Program:-

In Java.

class X

{

public static void main(String args[])

{

int a=2;

for(int i=1;i<=15;i++, a+=2)

System.out.print(a+" ");

}

}

Similar questions