0

i have coded a counter it works fine itself, but i made it start from 100 and want it to count to 0. now it shows : 100 990 980 970 ...

How do i make it show 100, 99, 98...

Share a link to this question (includes your user id)
| edit | | close | delete |
0

Without your code that is difficult to say. Normally you would lower the counter, eg. like:

counter=100;

loop() {
   counter = counter - 1;
   // display counter
}

I have written a Blog article on this with some examples. Did you see that?

Share a link to this answer (includes your user id)
| edit | delete |
0

i added these lines of code and defined the counter as 100 at te top

i added these lines of code and defined the counter as 100 at te top

Share a link to this answer (includes your user id)
| edit | | delete |

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.