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
Write a program to maintain a singly linked list having the following functions: a) Creation of the list b) Displaying the list. c) Swap all nodes at consecutive even odd positions. E.g.: The nodes at position 1 should be swapped with node 2, node 3 with node 4 and so on.
what are register variables?what are the advantages of using register variables in c language?
what is the differance between a technology and an engineering ?
Hi manikandhan, my name is ruby. Can u pls forward the conduct/character certificate on my Id. ruby_cse07@yahoo.co.in what details shall i require for this certificate. pls help me out with this..its really very urgent.. let me know soon bcoz my interview is on 19th septemper in mumbai...
sir i have 4 year gap in engineering. i would complete my degree b.tech it in 2014. it will be may be in 2nd class.my hsc is also with 2nd class. i am week in programming. Then if i want highest package upto 5-6 lacs then what should i prepare myself as a good engineer to get this package???
If any kind of accident happen without any information to any one .what kind of action we have to take
How can I boldly face the interview? Request:I am eagerly waiting for your replay.
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.??????
WHAT ARE THE ADVANTAGE OF SYSTEM ENGINEER
when there is a parametrized constructor, and an object is created with no arguments. will the default constructor be called?
when did actually oil exploration start
Differentiate y = sinx + cosx + tanx
while installing jad file to mobile its giving processing attribute MDlet-jar-URL error...how to fix it
reduce the number of key strokes to execute this command : t char -t -v -f/dev/fd0
i need to alone print a number no text by using if statement .say some idea