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
What is const pointer and const reference?
Explain function overloading and operator overloading.
Difference between overloading vs. Overriding
What is c++ stringstream?
What do you mean by persistent and non persistent objects?
What are the types of container classes?
What is java and c++?
What is the advantage of c++ over c?
Explain one-definition rule (odr).
Can comments be longer than one line?
What are the steps in the development cycle?
why is c++ called oops? Explain
When do we run a shell in the unix system?
What is an associative container in c++?
What are the advantages of using pointers in a program?