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 are the various height of GSM mount and its base width ashim.port@gmail.com
sir ,,kindly provide me 10 year old solved question papers of gate ,i am from CS. branch...
What do you like and dislike about working for this organisation?
What are the main differences between the engines in jet fighters and the engines in jet airliners; which type of engine is the more efficient, and (qualitatively) why?
project plan for bug tracking system?
what is JAR file,JNI,JFC??
Has anyone attended interviews in IITs for positions like Research fellowships/assistants? If yes, please share the experience about how complex the interview was, etc. etc.
hey frnds..i have taken an emergency interview date of 21st july and my school is starting from 8th sept...i was continuously checking the date from 10 days but was not able to get a normal date...so can i get a rejection on this, that i have taken an emergency date.??????
how updates the data in target tables with tpump and mload? with low volume data and more duplicates... so in this case which perfomance is best? and write update query for tpump&mload?
Friends i want to know about the civil service examination...when it wil be conducted this year?i want to become DSP...I just completed my engineering in the stream of computers....Is percentage required in engineering to Write Mains?please help me send answers to my mail arun.kanduri@gmail.com
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
What is the difference between "type testing" and "product qualification"?
what is the difference between public static void main (String args[]) and static public void main(String args[]) in java?
WAP in Java to print the format AMIT M I T
WHAT ARE THE ADVANTAGE OF SYSTEM ENGINEER