1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
how to print this using while statement??
Answer Posted / divyesh
int i=1,j,k;
while(i<6)
{
k=((10-(2*i)))/2;
while(k>0)
{
printf(" ");
k--;
}
j=1;
while(j<=i)
{
printf("%d ",j);
j++;
}
printf("\n");
i++;
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
how will u send the idoc
i made lan connections ,then how can i establish the network....with that connections only is the network is established ...tell me the procedure for giving the lan connection for some(10) pc's?
who is the judge in case of the auditor has raised an NCR against an auditee? who should decide weather this NCR is acceptable and the auditee has to accept?
i opt cse branch in engineering.which subject i have choose in civil service preliminary examination
How do trains go around bends?
can i knw what are we supposed to read for the coming oces/dgfs 2009 exam?what kind of book are we supposed to study?
How can we share data between actions in qtp..pls tell me
Why does the 'divisibility by 3' rule work?
There are n points and each point enclose with x and y axis form a rectangle and find the point using a program which forms the smallest rectangle?
Tell me all about production of drought and its losses In the boiler?
Reverse the link list without creating new list ?
how am i supposed to convert a class program in C++ to Matlab? Do i also need to make classes in matlab too or I can do it without making classes???Can somebody help....
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???
how to initialize a pointer to an array?
I am going to HAL Online test for Computer Science. Can you please mail me the model question papers ?