449 views
2 votes
2 votes
void fun(intn)
{
    int s=0;
    for(i=1;i<=n;i++)
    {
        for(j=1;j<=i*i;j++)
        {
            if(j%i==0)
            {
                for(k=1;k<=j;K++)
                s++
            }
         }
    }
}

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
pbhati asked Jun 12, 2018
339 views
What is the time complexity of the following piece of code in the terms of n?$Main()${$n=2^{2^k};$$for(i=1; i<=n; i++)${ $j=2;$ $while(j<=n)$ { $j=j^2;$ }}...
5 votes
5 votes
1 answer
2
rahul sharma 5 asked Oct 18, 2017
699 views
T(n) = 4T(n/2) + n2.$\sqrt{2}$In thetha notation?
1 votes
1 votes
2 answers
3
rahul sharma 5 asked Dec 16, 2016
818 views
for(i=1 to n) { if(n mod i==0) { for(int j=1 to n) printf(j); } }