diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-11-06 19:22:49 -0500 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-11-06 19:22:49 -0500 |
commit | 1f2261b5a3d4be901ef3f3bb43f2c7456c408427 (patch) | |
tree | a3c55f4be57e724648d66aba603c7be2a9525805 /minic | |
parent | 232b0356eb98950a08605b311087d07305e81115 (diff) | |
download | roux-1f2261b5a3d4be901ef3f3bb43f2c7456c408427.tar.gz |
use the new && in test/prime.c
Diffstat (limited to 'minic')
-rw-r--r-- | minic/test/prime.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/minic/test/prime.c b/minic/test/prime.c index 4c82ee8..1dd94e7 100644 --- a/minic/test/prime.c +++ b/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++; |