1 votes 1 votes For n=2 the P is coming as 3,but none of the option is satisfying? Programming in C programming-in-c output + – rahul sharma 5 asked Dec 14, 2016 rahul sharma 5 449 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 2 votes 2 votes Answer shoould be $\frac{3n^2 - 3n}{2}$ dd answered Dec 14, 2016 selected Dec 17, 2016 by dd dd comment Share Follow See 1 comment See all 1 1 comment reply Akriti sood commented Dec 23, 2016 i edited by Akriti sood Dec 23, 2016 reply Follow Share how did you derive this??is there any approach.? 1 votes 1 votes Please log in or register to add a comment.
0 votes 0 votes if we consider i<=2n in first loop then only we get the answer is b otherwise ans is 3n^2-3n/2 arun yadav answered Oct 16, 2020 arun yadav comment Share Follow See all 0 reply Please log in or register to add a comment.