i have been writing program that will find the smallest number which divide with all numbers between 0 and 10 i tshould be 2520 but it makes mistakes here is the code
Code:
#include <stdio.h>

int a(int y,int x){
	if (x%y==0){printf("X= %d \n",x);}
	else {printf("it wont happen \n");}
	return 1;
}

int main(){
	int x,y;
	for(y=1;y<=10;y++){
		for(x=1;x%1==0;x++);{(a(y,x));}}
	getchar();}
please help me!!!!!!!!!