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

HELLO ALL OF U.I HAVE QUALIFIED IN SBI CLERICAL WRITTEN EXAMINATION AND MY INTERVIEW IS ON 20TH OF THIS MONTH.IAM SOTWARE BACKGROUNDED CANIDIATE SO CAN ANY ANYBODY WHOSE INTERVIEW IS OVER CAN TELL ME THAT WHAT QUESTIONS THEY ASKED RELATING TO COMPUTER SCIENCE.

1396


Write a function to print all the combinations of a string both uppercase and lowercase without altering the position of each letter.

1890


What is the main difference between binary and counting semaphore?

1831


Explain i.d.e. for visual c++?

1651


what are the no. of leaf nodes in a fibonacci tree ?

1915






Write a Java program that takes an integer from the user and extracts and displays each digit of the integer in English. So, if the user types in 932, the program will display nine three two. [Use SimpleInput class]

1679


what in 4th and 5th normal form ??

1672


in single linked list , each node contains data and address of next node. if middle of list the node is damaged/crashed then how to find where the link is failed and how to get the all the data which is stored after the crashed node?

1316


hi this is amit..please help me to out this problem Objective 8: Create Resources (Function libraries) Requirements: Create a new order with the Flight Reservation application. 33. Use the script created above. 34. Write a function using VBScript that will take a date as an input and add 10 to it. i.e. if the date is passed as “15/08/2008” then after adding 10 it should become as “25/08/2008” 35. Use this function to parameterize the step used to enter “Date of Flight” 36. Run the pack thanx & regards

1731


How do trains go around bends?

656


what is static identifier in c language?

1702


what is the working of tcp/ip?

1546


How will I MOve Comp-1 variable into next variable without using Move statement?

1623


what is the differance between a technology and an engineering ?

1600


i have applied for junior engg. signal II please send me questions papers for it

1485