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 does scope resolution operator do?

700


What is diamond problem in c++?

633


Why is c++ so fast?

622


Explain the properties and principles of oop.

622


write a function signature with various number of parameters.

667






When should we use container classes instead of arrays?

674


What is function overloading c++?

662


What do the keywords volatile and mean mutable?

696


What's the order in which the local objects are destructed?

918


Define virtual constructor.

732


What is pointer -to-members in C++? Give their syntax?

684


Can malloc be used in c++?

664


What is one dimensional array in c++?

691


Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

808


What is #include sstream?

707