Here’s what I came up with:
#include <stdio.h>
int main(int argc, const char * argv[]) {
for (int i = 99; i > -1; i--) {
if (i % 3 == 0) {
printf("%d\n", i);
if (i % 5 == 0) {
printf("- Found one!\n");
}
}
}
return 0;
}
The printout looks good. Any room for improvement?