# Help for a program (duty)

**URL:** https://forum.makecode.com/t/help-for-a-program-duty/1077
**Category:** micro:bit
**Created:** [January 16, 2020, 6:08pm UTC](https://forum.makecode.com/t/help-for-a-program-duty/1077 "2020-01-16T18:08:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Waxise](https://avatars.discourse-cdn.com/v4/letter/w/90ced4/32.png) [@Waxise](https://forum.makecode.com/u/Waxise)
#### Post date: [January 16, 2020, 6:08pm UTC](https://forum.makecode.com/t/help-for-a-program-duty/1077/1 "2020-01-16T18:08:53Z")

</div>

Hello, for a kind of project, my teacher wants me to do a program but I can’t do it at all (we are barely starting) Here’s what to do :  
Carry out a program which will light a number of LEDs equal to the temperature divided by 2 one by one when you press A and turn them off when you press B.  
Thank you in advance for your help.

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [January 30, 2020, 4:35am UTC](https://forum.makecode.com/t/help-for-a-program-duty/1077/2 "2020-01-30T04:35:41Z")

</div>

Good luck!
