Hi all, i was having trouble solving this question:

Write a C program that displays all numbers from 1 to Y,which are divisible by a given number X, Where the user enters the values of X and Y.

ex: if the entered values of X and Y are 3 and 30 respectively ,the program will produce the following output:

" Numbers from 1 to 30 divisible by 3 are : 3 6 9 12 15 18 21 24 27 30"


here is my work so far , can anyone help me with the rest of the program or correct the loop for me ?

Code:
#include <stdio.h>
#include <conio.h>
main()
{
int X,Y,i;
printf("Please Enter value of  X,Y");
scanf("%d%d",&X,&Y);
for(i=1;i<=Y;i++)
printf("Numbers from 1 to %d divisible by 3 are : %d",Y,i);
getch();
}