Search:

Type: Posts; User: Elyril

Search: Search took 0.13 seconds.

  1. Replies
    7
    Views
    1,920

    [SOLVED] Re: Printing a matrix

    Ah. Got it! Thanks! and I didn't copy all the }s, so that's why they seemed out of place.
  2. Replies
    7
    Views
    1,920

    [SOLVED] Re: Printing a matrix

    Ah.. I see. I thought that was how it was supposed to be, but I kept doubting myself. and now this is my code


    public static void printMatrix(int n) {
    //first loop = rows, second loop = columns...
  3. Replies
    7
    Views
    1,920

    [SOLVED] Re: Printing a matrix

    This is what I have for my method <printMatrix>. I'm not sure how to make it so that the input can be used in the method. Also, not sure if both for loops should have n as the variable.


    public...
  4. Replies
    7
    Views
    1,920

    [SOLVED] Printing a matrix

    Please help.. I have an assignment that states that we have to print out a matrix of random 0s and 1s, the size of n-by-n with n coming from user input. With that being said, I know I have to use...
Results 1 to 4 of 4