Browse Source

use the new && in test/prime.c

Quentin Carbonneaux 10 years ago
parent
commit
1f2261b5a3
1 changed files with 1 additions and 2 deletions
  1. 1 2
      minic/test/prime.c

+ 1 - 2
minic/test/prime.c

@@ -17,8 +17,7 @@ main() {
 			t++;
 		}
 		if (p) {
-			if (c % 10 == 0)
-			if (c != 0)
+			if (c && c % 10 == 0)
 				printf("\n");
 			printf("%4d ", n);
 			c++;