#include <stdio.h> int main() { int bin = 0b0101; int x = 0; scanf("%d",&x); for(int i=0;i<x;i++){ int it = x-i-1; int res = (bin>>it) & 0b1; printf("%d",res); } }
To embed this program on your website, copy the following code and paste it into your website's HTML: