I was just learning about nested loops and got very confused about the example in Jumping in C++. Can you guys please help me through it and explain what each part of it does. Thanks! This is the code below:
Code:#include <iostream> #include <string> usingnamespacestd; int main() { for(int i=0;i<10;i++) { cout<<'\t'<<i; } cout<<"\n"; for(int i=0;i<10;++i) { cout<<i; for(int j=0;j<10;++j) { cout<<'\t'<<i*j; } cout<<"\n"; } }