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 / prasenjit roy
int main()
{
int i;
int j;
for(i = 1; i <= 6; i++)
{
for(j = i; j >= 1; j--)
cout<<j<<" ";
cout<<endl;
}
return 0;
}
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Explain terminate() and unexpected() function?
What are the advantages of using const reference arguments in a function?
State two differences between C and C++.
What is the difference between a "copy constructor" and an "assignment operator" in C++?
What is a singleton class c++?
How would you obtain segment and offset addresses from a far address of a memory location?
Explain the extern storage classes in c++.
What are the types of pointer?
Array base access faster or pointer base access is faster?
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..
Explain about vectors in c ++?
What is the function of I/O library in C++ ?
Does dev c++ support c++ 11?
What are the two types of polymorphism?
What is abstraction in c++?