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
What is the difference between operator overloading and function overloading in C when compared with C++?
multithreading??
I want old SBI question papers plzzzzzzzzz
. 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
how 2 write a program of this pattern usin for loop?? 1 2 3 4 5 6 7 8 9 10
what are the efficient way or solutions to avoid ABEND=S04C.
how we can improve mobile ad,hoc network.
I want to join for load runner training..please suggest me which is the best institute for load runner training in bangalore?
Why is not creat swap partition in my system.
How would Nvidia increase the core clock speed anymore?
to print greatest of two integers without using >,<,=.
Index of an Array containing 'n' aliment varies from________to_______
Tell me about your parents?? Pls share any one best words...
What is frog testing? What is cone model?
Can one be shocked holding a wire carrying a very large current with a low voltage source?