Dear All,
 
Considering the given code as an algorithm calculate the time complexity of 
this code.
 
#include<iostream>
#include<stdlib.h>
using namespace std;
 
int main(){
    int i, j, n;
for(i=0;i<n; i++){
 
        for(j=0; j<n; j++){
                cout<<"my time complexity is = "<<i*j<<endl;
                }
        cout<<"complexity is increasing"<<j<<endl;
        }
system("pause");
return 0;
}
 
 
 


      

[Non-text portions of this message have been removed]

Reply via email to