computing
  • 0

Help Making Rows And Columns In C++ Programming

  • 0

I need help in making for example 4 rows with 5 columns in each row. Any help with this?

Share

1 Answer

  1. i dont know if you can find this useful its the basic way

    #include <iostream.h>

    int main (int argc, char * const argv[]) {

    const int rows =4;
    const int colo =5;

    for (int r=0; r <rows; r++) {

    for (int c=0; c <colo; c++) {
    cout << “|-h-| |-h-| |-h-| |-h-| |-h-|”
    << endl;
    break;
    }
    }
    return 0;
    }

    • 0