You are viewing a single comment's thread. Return to all comments →

i think q is used for number of series you want to print . Sample Input

2 0 2 10 5 3 5

here q=2 . which means 2 series. in 1st series a=0 b=2 n=10 and in 2nd a=5 b=3 c=5. i hope i m correct. (Newbie here)

yes you got it right

awsome arpana

On the first series you have n and the second you have c? explain please

I think that is a typing error, in the second series the values are a=5, b=3 and n=5.

Hope this helps!!!!

for(int i=0;i

} System.out.println(sb.toString());

but actually what will be the equation will look like

Yup this one is clear.

## Java Loops II

You are viewing a single comment's thread. Return to all comments →

i think q is used for number of series you want to print . Sample Input

here q=2 . which means 2 series. in 1st series a=0 b=2 n=10 and in 2nd a=5 b=3 c=5. i hope i m correct. (Newbie here)

yes you got it right

awsome arpana

On the first series you have n and the second you have c? explain please

I think that is a typing error, in the second series the values are a=5, b=3 and n=5.

Hope this helps!!!!

for(int i=0;i

but actually what will be the equation will look like

Yup this one is clear.