This code does not generates an output.. please tell what is missing.. I'm new to programming.
int main()
{
int num;
scanf("%d", &num);
for (int i = 1; i++; i <= num)
{
int f = 0;
for (int t = 1; i++; i<i)
{
if (i%t == 0)
f++;
}
if (f == 2)
printf("%d ", &i);
}
}