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

Everything is fine.. but what is q here.??

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.

in the given test case q=2 an in next q=3 i.e. a+q^0b+q^1b.....

It's super confusing, but "q" is taken care of for you and is actually called "t". Wtf! Yeah, I know.

no of test cases

just to decide number of enteries

## Java Loops II

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

Everything is fine.. but what is q here.??

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.

in the given test case q=2 an in next q=3 i.e. a+q^0b+q^1b.....

It's super confusing, but "q" is taken care of for you and is actually called "t". Wtf! Yeah, I know.

no of test cases

just to decide number of enteries