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 / bhushan
#include<iostream.h>
void main()
{
for(int i=1;i<=6;i++)
{
for(int j=i;j>=1;j--)
{
cout<<j<<"\t";
}
cout<<"\n";
}
}
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Show the declaration for a static function pointer.
Can we make copy constructor private in c++?
Eplain extern keyword?
Can you pass an array to a function in c++?
What is the sequence of destruction of local objects?
What do you mean by friend class & friend function in c++?
How to allocate memory dynamically for a reference?
Do vectors start at 0?
What do c++ programmers do?
Why main function is special in c++?
Why are pointers not used in c++?
How are virtual functions implemented in c++?
How do we implement inheritance in c++?
What is the prototype of printf function?
Why was c++ created?