Write a program to display the first 10 terms of the following series. 0 1 2 3 6.
Answers
Answered by
3
Answer:
class pattern
{
public static void main (String args[ ])
{
int i, sum=0;
for(i=1;i<=10;i++)
{
System.out.print(sum+" ");
sum = sum+i;
}
}
}
Hope it helps u
ramiyamathew:
Yes it helped me a lot
Similar questions
Social Sciences,
1 month ago
English,
3 months ago
Physics,
3 months ago
Math,
9 months ago
English,
9 months ago