I am having problems with a while loop. I have a .pdf file of what I amtrying to do. Maybe I could email it to someone and get some help or chat on AIM or MSN. Can anyone help?
I am having problems with a while loop. I have a .pdf file of what I amtrying to do. Maybe I could email it to someone and get some help or chat on AIM or MSN. Can anyone help?
Post your question here, with a sample bit of code. Give as much detail as possible about what you're trying to achieve, what you've tried so far, and where you think you might be going wrong. The code you provide should be a snippet, detailing this problem only (ie don't post your complete source, just the stuff that's relevant). If you're getting errors from your compiler, post those to. Someone will help you.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
Maybe you could explain what sorts of problems you are having with your while loop.
We are trying to make a chart with months in column A starting at 1 going to 36. Addin gone each time.
So far we have
......
Code:{ while (MONTH<=36) {printf("%d\n",MONTH); MONTH ++;} } no errors on complier, just not working
We are trying to make a chart with months in column A starting at 1 going to 36. Addin gone each time.
So far we have
......
no errors on complier, just not workingCode:{ while (MONTH<=36) {printf("%d\n",MONTH); MONTH ++;} }
Why don't you use 'for'?
Code:for (month=1;month<=36;month++){ printf("%d\n", Month);
Originally Posted by Alastor
Where would the for statement go?
When we use ++ our error no says needs 1 value
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]