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 / gayatri chhotray
int main()
{
int i;
int j;
for(i = 1; i <= 6; i++)
{
for(j = i; j >= 1; j--)
{
cout<<j<<" ";
}
}
return 0;
}
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
Is it possible for the objects to read and write themselves?
Describe the process of creation and destruction of a derived class object?
What is a local reference?
Is c++ primer good for beginners?
Explain the register storage classes in c++.
Can we declare a base-class destructor as virtual?
Give an example of run-time polymorphism/virtual functions.
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
Can malloc be used in c++?
What is oops in c++?
What is the difference between equal to (==) and assignment operator (=)?
what is the use of void main() in C++ language?
What are the different types of polymorphism in c++?
Explain the difference between abstract class and interface in c++?
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.