The code you posted compiles and runs OK on ideone.com for me - although I have to wonder why you're using such an awkward way to compile and run your code. Why not use a local IDE that actually...
Type: Posts; User: dlorde
The code you posted compiles and runs OK on ideone.com for me - although I have to wonder why you're using such an awkward way to compile and run your code. Why not use a local IDE that actually...
Yes, quite! :cool:
If you want to loop 3 times, the end condition should be x < 3, not x < 2.
Check that you're incrementing the correct index in your 'for' loops.
ETA - sorry Kevin, I pre-empted you there...