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
What does scope resolution operator do?
What is diamond problem in c++?
Why is c++ so fast?
Explain the properties and principles of oop.
write a function signature with various number of parameters.
When should we use container classes instead of arrays?
What is function overloading c++?
What do the keywords volatile and mean mutable?
What's the order in which the local objects are destructed?
Define virtual constructor.
What is pointer -to-members in C++? Give their syntax?
Can malloc be used in c++?
What is one dimensional array in c++?
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
What is #include sstream?