Two-Dimensional Table


/ Published in: C++
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // Loop used for two-dimensional iterations for a table
  2. // useful for tabular output
  3. for(int x = 1;x<=9;x++)
  4. {
  5. cout<<endl;
  6. for(int i = 1;i<=9;i++)
  7. {
  8. cout<<"\t"<<x*i;
  9. }
  10. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.