nvm i got it thnks anyway
nvm i got it thnks anyway
Last edited by programingnoob; 11-20-2011 at 12:50 PM.
The idea it to count from negn to posn, so what should be changing each iteration is countern, not negn:Code:for (countern=negn;countern<=posn; ++negn){ hello[i]=negn;
Now since countern is your iterator, you want to use that for your array assignments:Code:for (countern=negn;countern<=posn; ++countern){
Code:hello[i]=countern;
If you understand what you're doing, you're not learning anything.