Jump to content

Can ya help me?


dcowboys107

Recommended Posts

Certainly.

 

#include <stdio.h>

int main (void)
{
int x = 13;
do 
{
	if (x % 2 == 1 && x % 3 == 1 && x % 4 == 1 && x % 5  == 1 && x % 6 == 1 && x % 7 == 1 && x % 8 == 1 && x % 9 == 1 && x % 10 == 1 && x % 11 == 1)
	{
		printf ("%d", x);
		return 0;
	}
	x += 13;
} while (1);
}

It does the job.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.