Java Loops II

  • + 0 comments

    for each of the 'q' queries you are given three values - (a,b,n)

    • Task is to print a series with 'n' space separated terms where i(th) term is of the form =>> ( a + (b * (2^i)) )
    • Print such a sequence for each of the queries in new line. Thats all