I was working on c and looking at an old manual I found the following code that seemed simple.
int num=50, i;
for(i=1; i<=num; i++)
{
if( !( num % i)) //esta es la línea que saltea
{
printf(“%d”, i);
}
}
My answer when compiling is that they do not show anything, I do not know if I will miss a piece of code but in the manual it says that the if it has a non-zero value by default it enters into code and that value in the condition is the remainder of the number divided the counter denied. I would like to know what result it gives you when you compile it and why I do not get any data when compiling it (use CODEBLOCKs).