We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
that a is added n times in last term of series
and n-1 times in second last term of series
and n-2 times in third last term of series
......
.....
.....
and a is added only once in each term of series.
So u can print
System.out.println(v+a); instead of adding the a in each term.
Java Loops II
You are viewing a single comment's thread. Return to all comments →
that a is added n times in last term of series and n-1 times in second last term of series and n-2 times in third last term of series ...... ..... ..... and a is added only once in each term of series. So u can print System.out.println(v+a); instead of adding the a in each term.