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
Qatar petroleum will call me for an technical phone interview as safety officer Please let me know what kind of question they asked ? any idea about this written test ?
What is the meaning of "co relation" and what is the value of "co relation" in the performance testing environment.
how can one get scholership based on gre score ang how much scholarship one can get, plz suggest the way one can apply and get scholarship
What is the instruction to load the register B?
Calculate the interstage pressure ratio per stage for a two stage compressor if the overall pressure ratio is 10.
How many of 14 digit numbers we can make with 1,2,3,4,5 that are divisible by 4. Repetitions allowed.
can anybody send me the technical papers of hewitt associates pls...I cleared aps n GD n has only less time for technical round?
Please if anybody have Vizag Steel Entrance exam papers or atleast Pattern of exam.Then please forward to my email- id: :srikanth.avanthi@gmail.com
How do aeroplanes fly? Why can some fly up-side down?
What are the frequently asked technical engineer ques?
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 is the difference between oracle 8i and 9i. if someone could help me out.
sir,i am a 3rd yr student of computer engineering. i need atleast 10 previous year's placement papers of hcl,infosys & wipro. please send me these papers as early as possible.thanx for giving me your precious time.
when air is supplied from larger diameter pipe with some pressure if change diameter to small pipe the pressure increases or not? also what is increased pressureor velocity?
can you provide me uniken pvt ltd. technical interview question and answer?