Initial commit
This commit is contained in:
28
src/C/task5.c
Normal file
28
src/C/task5.c
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
int main(){
|
||||
|
||||
int x=5;
|
||||
|
||||
while(1){
|
||||
|
||||
|
||||
for (int i = 2; i <= 20; i++)
|
||||
{
|
||||
if (x%i!=0){
|
||||
break;
|
||||
}
|
||||
if(i==20){
|
||||
printf("%d\n", x);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
x+=1;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user