#include <stdio.h>
#include <stdint.h>
void app_main() {
//8 bits are being stored
uint8_t num = 25; // Binary: 00011001
//binary representation of 25
printf("Binary representation of %i:\n0b", num);
// Loop through each bit from most to left decrementting
for (int i = 7; i >= 0; i--) {
printf("%i", (num >> i) & 1); // Shift and mask to get the bit
}
printf("\n");
}