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
How would you design a gravity dam for holding back water?
how to implement spiral model on railway reservation?.
Hello sir i finished my BE computer 2009 batch. I'm not gud at programming like 0 knowledge and i'm not interested in it too . Except this programming field is anyother option to afford into a new one ??????? can anyone help me plz
what should i say in the interview if interviewer asks me "why did you choose IT instead of your core group?"
sir, please send me the last three years exam papers conducted by CPCL- RECRUITMENT EXAM FOR Recruitment of Engineer ELECTRICAL ENGINEERING. A Soon as possible. i would be greatfull to u
i need to know abt renault nissan company and the rounds and type of questions asked by today
What would be the difficulties with building a bridge that connects the UK and Canada?
I an doing Engineering in IT(4th year). i want to know what is the scope or .NET and Linux, and which is better for carrier
Hello friend I am Manish from delhi I clear the written exam of NIC(national insurance company),If any one have any idea about inerview plz send me details my no:-9999026117,Email id:-bittu523@yahoo.com
what is the stucture of.net array?
can u tell me what are the subjects involved in group I and II and how i prepare for the exam
while installing jad file to mobile its giving processing attribute MDlet-jar-URL error...how to fix it
can you provide me uniken pvt ltd. technical interview question and answer?
i want to know about the scope of IT engineers in ONGC
explain various object oriented programming fetures