449 views

2 Answers

Best answer
2 votes
2 votes
Answer shoould be $\frac{3n^2 - 3n}{2}$
selected by
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

Related questions

0 votes
0 votes
0 answers
1
iarnav asked Dec 26, 2017
406 views
what is the o/p?int main() { char inchar = 'A'; switch (inchar) { case 'A' : printf ("choice A \n") ; case 'B' : { printf ("choice B") ; break; } case 'C' : case 'D' : ca...
1 votes
1 votes
0 answers
2
0 votes
0 votes
1 answer
3
sushmita asked Mar 27, 2017
512 views
Find the out put of the following C program. main() { char *ptr = "techtud"; char p= (*ptr)++; printf("%s\n",ptr); }the output of the program came as$?$
0 votes
0 votes
1 answer
4