fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int i,n,j;
  5. scanf("%d",&n);
  6. for(i=n;i>=1;i--){
  7. for(j=1;j<=i;j++){
  8. printf("%d",j%2);
  9. }
  10. printf("\n");
  11. }
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5324KB
stdin
7
stdout
1010101
101010
10101
1010
101
10
1