/******************************************************************************
Online C Compiler.
Code, Compile, Run and Debug C program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <stdio.h>
int main()
{
int i,j,k=1;
for(i=0;i<=10;i++)
{
for(j=0;j<=i;j++)
{
printf("%d",k);}
if(k==1)
k=2;
else
k=1;
printf(" ");}
return 0;
}