1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
how to print this using while statement??
Answer / 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 |
How would you design a gravity dam for holding back water?
Why does the 'divisibility by 3' rule work?
What is the mistake in the following program segment ? f() { int a; void c; f2(&c,&a);}
plz explain abt refrigeration r22 bitzer comprassors trouble shooting and maintenance
iam from engineering information technology ... can i write group 1 exams??
1 2 3 2 5 6 7 8 3 find the next term in the series
what is the Relationship between quantity of Gas and capacity of AC machine in tonnage.
What is the difference between "type testing" and "product qualification"?
please explane me clusterd and non clusterd
Tell me about your parents?? Pls share any one best words...
What is Mointer in Operating System?
My gre score is 283 and ielts is 5.5, will i get i20 for this score