Áireamhán Microbit

This week we built our very own Calculator on the Microbit

We created three variables to store 3 different numbers.

When A and B are pressed, a random number between 0 and 100 is generated

When we shake the microbit, our two numbers get added ( or subtracted, divided or multiplied ) together and stored in the “total” variabnle

Finally we show the user the answer

Click on the speech icon in the top left of each code block to open the notes

Previous
Previous

Domhantarraingt

Next
Next

QR code generator