C++ Tracing

Hi....i have an exam in C++ and i did not know how to trace this program..

#include <iostream>

using namespace std;
int main()

{
int i,j,k;

for(i=0;i<2;++i){
cout<<i<<"\n";
for(j=0;j<3;++j)
cout<<i+j;
for(k=2;k>0;--k)
cout<<i+k;

}

return 0;
}


thank you so much :)
God Bless
Last edited on
Topic archived. No new replies allowed.