#include <stdio.h>
#include<stdlib.h>
int main()
{
int n=7;
while(1)
{
if(n%2==1&&n%3==2&&n%4==3&&n%5==4&&n%6==5)
break;
n+=7;
}
printf("%d\n",n);
system("pause");
}
#include <stdio.h>
#include<stdlib.h>
int main()
{
int n=7;
while(1)
{
if(n%2==1&&n%3==2&&n%4==3&&n%5==4&&n%6==5)
break;
n+=7;
}
printf("%d\n",n);
system("pause");
}