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 stucture of.net array?
tell me one scenario where we go for idoc and WHy we go for idoc.
am looking for ms,i got ielts score 5.5,and i dont have english score 60 in any any year.tell me can i get offer lettr from any university.is i am elegible..?
is it possible to get u.s visa with 55% in b-tech and 15 backlogs
c# code, vb.net code language parity refers to what?
what is the need for oobs
Write a function to print all the combinations of a string both uppercase and lowercase without altering the position of each letter.
Guys! I coplted 10th with 80% and +2 with 64% now am dng c.s.e b.tech...i want to go abroad for higher studies i want to write tofel...plZ GIVE UR SUGGESTIONS!
what are the artifacts in coding phase in SDLC????
Client server applications
is the RKDF university is aicte approved for b.tech in computer
What is frog testing? What is cone model?
what is the difference between C and C++? what is the difference between scanf and gets? what is mean by extern what is the use of it? what will happen if i say delete this> Difference between C structure and C++ structure? What is the difference between overloading and overridding? Explain the need for "virtual Destructor" Can we have "virtual Constructors"? What is the different types of polymorphism> What is virtual functions? How to implement virtual function in "C"? What are the different types of storage classes?
how to make resume and what should I include in it?
explain various problem solving statagis