1
01
101
0101
10101

Answer Posted / krishna anil dadge

#include<iostream>
using namespace std;
int main()
{
for(int i=1;i<=5;i++)
{
for(int j=1;j<=i;j++)
{
if((i+j)%2==0)
{
cout<<"1";
}
else
{
cout<<"0";
}
}
cout<<endl;
}
return 0;
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i have passed my gRaduation in BCA and now im looking for post graduation from Germany, i haver passed my ielts wth 6 band, nw plz tell me some question that wll ambessay ask

1383


what two ways you can use to ensure that visual basic does not allow uncleared variables?

1797


what is the difference between physical address and logical address?

1518


Write the fetch cycle and execute cycle for following instructions:JMPNZ (jump to the given address if the accumulator not equal to zero) RET(return from a subroutine) ADB (add the contents of register B to the accumulator and save result in the accumulator).

1771


as a fresher what is the format for resume and suggest me some career objectives too........

1875






3. Tell me about a time when you had too many things to do and you were required to prioritize your tasks.

1566


Why do you want to work here

1339


which field is comparitively very best , today and in future while considering the following : ELECTRONICS [OR] NETWORKING

1434


where is the first vidhyalaya of physically handicaped

1460


what is node class?

1749


why we use conio.h in c programming?

1669


How we can find out face expression ,what approach should be followed (like skin detection) ?

1418


1)How to calculate AC Capacity for the Room?

1731


I have failed my intermediate can i write entrance exam the next year after completing my backlogs

1180


how to count number of 3's in 100

1738