void func(){
int x=0;int i=0;int j=1;
cout<< “Enter value”;
cin>>n;
while (i<n){
x++;
i++;}
while (j<n){
j++;}}  what is the running time those algorithm?

void func(){ int x=0;int i=0;int j=1; cout<< “Enter value”; cin>>n; while (i<n){ x++; i++;} while (j<n){ j++;}} what is the running time those algorithm?

quanswer.com