Computer Science, asked by ppatilpune11, 1 year ago

Write a program to display the first ten terms of the series:
0,3,8,15
Program for it
(Blue J)

Answers

Answered by garima1311
0
int n;
int x = 3;
int s = 0;
for (n=0;n<10;n++)
{
System.out.println(s);
s = s + x;
x = x + 2;
}int a;
int y = 75;
int k = 24;
for(a=0;a<10;a++)
{
System.out.println(k);
k = k + y;
y = y + 50;
}
Similar questions