Considering the given code as an algorithm calculate the time complexity of this code.
#include
#include
using namespace std;
int main(){
int i, j, n;
for(i=0;i
Code tags please[code=cplusplus][/[TEX]][/TEX]code]. Also if our asking what the time complexity is. Why don't you consider showing us what you understand before we just tell you.
Also it should be cstdlib, since this is cplusplus
#include<iostream>
#include<cstdlib>
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;
}