Skip to content

Instantly share code, notes, and snippets.

@lamichhaneshreeram052
Created March 9, 2014 12:42
Show Gist options
  • Save lamichhaneshreeram052/9447229 to your computer and use it in GitHub Desktop.
Save lamichhaneshreeram052/9447229 to your computer and use it in GitHub Desktop.
#include<stdio.h>
#include<conio.h>
int main()
{
int i,j;
for(i=1;i<=6;i++)
{
for(j=1;j<=i;j++)
{
if((i+j)%2==0)
{
printf(" 0");
}
else
{
printf(" 1");
}
}
printf("\n");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment