2,4,6,8,10.........upto 15 terms (print the following series)
Answers
Answered by
2
Answer:
Assuming it's a Java programming...
for(i=2;i<=30;i+=2)
{
System.out.print(i+",");
}
Answered by
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
Math,
2 months ago
Math,
2 months ago
English,
2 months ago
Business Studies,
5 months ago
Math,
10 months ago