Expert in study
alarm
Ask
Computer Science
Costa Mesa Costa Mesa Jan 15, 2021

Write a program to display the first 10 terms of the following series. 0 1 2 3 6.

answers: 1
Register to add an answer
The time for answering the question is over
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

156
Neumann Neumann
Jan 15, 2021
For answers need to register.
Contacts
mail@expertinstudy.com
Feedback
Expert in study
About us
For new users
For new experts
Terms and Conditions