I am looking for the time complexity of the following nested loops, where the inner loop is shrinking.function(int n){  c=0;  for(int i=1;i<=n;i++)    for(int j=i;j<=n;j++)      c++;}
What is the time complexity of the nested loop ($j=i \ldots n$ inside $i=1 \ldots n$)?
algorithm analysis;runtime analysis;loops