Bit printing Pattern using C
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2Z7N4vXeVAg-4N7CgD4uA4NI3rda7AAJgucGfcYnhZvQa9UOTtFX0Syv8m7nLVO9IA_h_nyC_T2Mkgkc7ieqVOuQ9yoFBypW57k8DvQsrFMF_Uwttv-WTL9QxAV-tRJnbku8BahOtp3c/s640/Screenshot+from+2020-04-09+20-22-57.png)
#include<stdio.h> int main() { int h,i,j,k=1; printf("Enter the height"); scanf("%d",&h); for(i=1;i<=h;i++) { for(j=1;j<=i;j++) { printf("%d ",k++%2);//1 0 1 0 } printf("\n"); } }
waiting for viewers comments