write the code that display the format just like
1
2 1
3 2 1
4 3 2 1
5 4 3 2 1
6 5 4 3 2 1

Answer Posted / suman_kotte

main()
{
int i,j;
for(i=1;i<=6;i++)
{
for(j=i;j>=1;j--)
printf("%d",j);
printf("\n");
}
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best c c++ compiler for windows?

570


What are pointers used for c++?

574


Explain the difference between realloc() and free() in c++?

540


Is dev c++ a good compiler?

529


Which is most difficult programming language?

582






Explain how overloading takes place in c++?

579


What are different types of loops in c++?

660


what is oops and list its features in c++?

554


Explain the volatile and mutable keywords.

617


List the issue that the auto_ptr object handles?

613


Explain the concept of friend function in c++?

608


what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?

1774


What is abstraction with real time example?

623


What is a static member?

618


What is the advantage of an external iterator.

577