I've typed up this code below, but need to find Z. Do I need printf to show what z is and if so, how would I implement it?
insertCan anyone help me?Code:int n, z; z=1000 for (n=0; n<100; n+=100) { z++; }
I've typed up this code below, but need to find Z. Do I need printf to show what z is and if so, how would I implement it?
insertCan anyone help me?Code:int n, z; z=1000 for (n=0; n<100; n+=100) { z++; }
printf("%d\n",z);
edit:
%d : means print an 'int' value
\n : add a carriage return/line feed
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"