#include <stdio.h>

int main() {
    int bin = 0b01011110;
    int x = 8;  // Assuming an 8-bit binary representation
    int start_index, end_index;

    scanf("%d %d", &start_index, &end_index);

    for (int i = end_index; i >= start_index; i--) {
        int res = (bin >> i) & 0b1;
        printf("%d", res);
    }

    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: