Skip to content

Instantly share code, notes, and snippets.

@jonvuri
Created August 12, 2012 19:57
Show Gist options
  • Save jonvuri/3334076 to your computer and use it in GitHub Desktop.
Save jonvuri/3334076 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main() {
int num = 0;
int i;
int counter;
do {
counter = 0;
num++;
for (i = 1; i <= 20; i++) {
if (num % i == 0)
counter++;
}
} while (counter < 20);
printf("Number: %d\n", num);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment