1
01
101
0101
10101

Answer Posted / guriya kumari

#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,k;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
if(i%2==0)
{
if(j%2==0)
{
k=1;
printf("%d",k);
}
else
{
k=0;
printf("%d",k);
}
}
else
{
if(j%2==0)
{
k=0;
printf("%d",k);
}
else
{
k=1;
printf("%d",k);
}
}
}
printf("\n");
}
}

Is This Answer Correct ?    7 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between operator overloading and function overloading in C when compared with C++?

1309


multithreading??

1484


I want old SBI question papers plzzzzzzzzz

1497


. Give the C language equivalents of the following a)Function returning an int pointer b)Function pointer returning an int pointer c)Function pointer returning an array of integers d)Array of function pointer returning an array of integers

1594


how 2 write a program of this pattern usin for loop?? 1 2 3 4 5 6 7 8 9 10

1599






what are the efficient way or solutions to avoid ABEND=S04C.

5992


how we can improve mobile ad,hoc network.

1788


I want to join for load runner training..please suggest me which is the best institute for load runner training in bangalore?

1076


Why is not creat swap partition in my system.

1307


How would Nvidia increase the core clock speed anymore?

1658


to print greatest of two integers without using >,<,=.

1413


Index of an Array containing 'n' aliment varies from________to_______

1577


Tell me about your parents?? Pls share any one best words...

1213


What is frog testing? What is cone model?

1405


Can one be shocked holding a wire carrying a very large current with a low voltage source?

1553