Biniman Idugboe wrote:Thanks a lot man! You have just relieved me. I can go to sleep now. It far past bedtime in my region.
No worries bro, one time I was stuck on my application for a whole 5 days and no one could figure out my issue, turned out I was just missing a zero somewhere and I discovered it when I had decided to scrap the whole thing and do it something else. It is usually the small things that are the issue. Look for those
Yosuf Ibrahim wrote:
Biniman Idugboe wrote:
The condition for the loop to keep going is "i" should be less than 1 and its value has been set to 10 which is greater than 1
One of options. Another option is, that OP might wanted to print out numbers starting from 10 and going down to 1 or so. If that is the case, then for the boolean condition other operator needs to be used.
Liutauras Vilda wrote:Probably best would be if OP would describe what app supposed to be doing. Not describing problem clearly, I could say - this loop works great as it does exactly what it supposed to be doing.
I can tell you are a pro dev from your posts, however, me and him are both noob programmers still learning. So we understand each other, my friend
The noobers connection I call it
first, set i to 10.
Then if i is less than 1, execute the body.
...well...i is 10, and 10 is NOT less than 1, so skip the body..
learning to do this is an incredibly important skill. Start practicing now, on simple stuff, so when you get to more complicated stuff, it's not as huge a cliff to climb.