12344321
123 321
12 21
1 1 how i print this program??

Answer Posted / sunitha

for(i=1;i<=5;i++)
{
for(j=1;j<=i;i++)
{
for(k=1;k<=j;k++)

printf("%d",k);
k--;
printf("%d",k);

}
}

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is wild pointer in c?

596


Explain 'far' and 'near' pointers in c.

697


How can I read data from data files with particular formats?

595


What will the preprocessor do for a program?

578


List a few unconditional control statement in c.

555






If null and 0 are equivalent as null pointer constants, which should I use?

573


What's a good way to check for "close enough" floating-point equality?

617


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

2920


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

737


List the difference between a 'copy constructor' and a 'assignment operator' in C?

632


What are logical errors and how does it differ from syntax errors?

647


What does void main return?

597


What is a good data structure to use for storing lines of text?

586


Explain what is wrong in this statement?

627


What is break in c?

577