Plz tell me how I would calculate time complexity of the program:

int i = N;

while (i > 0)

{

int Sum = 0;

int j;

for (j = 0; j < i; j++)

Sum++;

cout << Sum << endl;

i--;

}

thnx in advance

Rashakil Fol 978

Rashakil Fol 978

Rashakil Fol 978

WaltP 2,905

Rashakil Fol 978

Salem 5,138

darkagn 315

sarehu 84

pyTony
commented:
Create your own question thread with proof of effort -3