Search:

Type: Posts; User: laserlight

Search: Search took 0.10 seconds.

  1. You are already storing the prime numbers: they...

    You are already storing the prime numbers: they are in the array, along with the composite numbers.
  2. Ah. In that case, check if the number already...

    Ah. In that case, check if the number already appears in the array by using a loop. If it does not, display it.
  3. Just check if the current number is prime. If it...

    Just check if the current number is prime. If it is, display it.
  4. What is this I don't even It looks too...

    What is this I don't even


    It looks too complicated. I would expect:

    for (row = 0; row < 15; row++)
    {
    for (col = 0; col < 2; col++)
    {
    modecount[row][col] = 0;
  5. It is good that you are using local variables,...

    It is good that you are using local variables, but unfortunately you have allowed your main function to grow to some 180 lines. Rather, you should break it up into smaller functions that do one thing...
Results 1 to 5 of 5