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
What are proxy objects in c++?
What is an orthogonal base class in c++?
Why do we use structure in c++?
How the programmer of a class should decide whether to declare member function or a friend function?
Tell me difference between constant pointer and pointer to a constant.
Are strings immutable in c++?
What is #include iostream in c++?
What is oops in c++?
the first character in the variable name must be an a) special symbol b) number c) alphabet
What is do..while loops structure?
What's the best free c++ profiler for windows?
What is this weird colon-member (" : ") syntax in the constructor?
If I is an integer variable, which is faster ++i or i++?
Explain dangling pointer.
What are special characters c++?