I am stuck with this program. I don't understand the conditions in nested loops.
Another thing if number is 2, j<=(¡/j) because j=2. 2 divide by 2 is not greater or equal to j then condition is false then what would be output.pleae also elaborate your answer.!
I'm really stuck with it.
Moderators note : split into lines and used code tags
Another thing if number is 2, j<=(¡/j) because j=2. 2 divide by 2 is not greater or equal to j then condition is false then what would be output.pleae also elaborate your answer.!
I'm really stuck with it.
Code:
#include <stdio.h>
int main ()
{ /* local variable definition */ int i, j;
for(i=2; i<100; i++)
{ for(j=2; j <= (i/j); j++)
Last edited by a moderator: