Yes, a nb.
I have a problem with the following program I need to write as an essay.
assuming these are my variables:
startRange = 9
endRange = 20
I need to calculate which are the "powerfull" numbers, never mind what it means :)
the thing is that my while doesn't exit when it reaches the appropriate condition.
I am talking about the only while loop in this piece of code, so it won't be hard for you guys to find it :)
printf("Number : acceeding / powerfull\n");
for(currentNumber=startRange; currentNumber<=endRange; currentNumber++)
while(currentNumber%x!=0 && x<currentNumber)