This looked good, just add the ampersand: & to the front of tick. Then:
Code:
printf("what should I set the timer to?");
scanf ("%i", tick); //add the ampersand: &
for(i=0;i<tick; i++) {
print tick
delay() or sleep() One uses millisecond's, one uses seconds.
To use delay() or sleep() you need to include a header file. Look in your help files to see
which one (I use #include <dos.h>, but this is on a very old compiler. Yours may be
under a different header file name.
}
Always put your code between the forum [CODE ] [/CODE ] tags. Otherwise your code gets squished all to the left hand side, and put in a bad font to have to study.
You get the code tags by clicking on the # icon, at the top of the forum's editor box.