Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Re: Need to use mod operator to complete printSquare program

    Look at what is printed on each row.
    The first digit is the row+min
    followed by the digits up through the max digit
    following the max digit is the min digit and print the digits for the rest of...
  2. Re: Need to use mod operator to complete printSquare program

    What code do you have now? What is the current problem you are having?



    One change I recommend is to change the variable names to something related to the data that they hold. X and y have no...
  3. Re: Need to use mod operator to complete printSquare program

    Hard to say anything without seeing any code.

    A suggestion: The variable names should reflect what values they hold and how they are used. i,j,x,y have no meanings. min, max row and column...
  4. Re: Need to use mod operator to complete printSquare program

    Have you compiled and executed the code to see what it does?
  5. Re: Need to use mod operator to complete printSquare program

    One problem with the for loops is the ; which ends the statement making for two empty loops.

    Otherwise what are the loops supposed to do?
  6. Re: Need to use mod operator to complete printSquare program

    @Chris.Brown.SPE We posted at the same time. My post was to the OP, not you.
  7. Re: Need to use mod operator to complete printSquare program

    How are you going to have the digits wrap around to the starting digit when the end digit is shown on a line?
Results 1 to 7 of 7